[bugfix] cancelling localization now works and gives information about the localization state

This commit is contained in:
Sebastian Wehling-Benatelli 2016-09-08 15:28:40 +02:00
parent cbbe019475
commit a2ddd04b2f

View File

@ -925,7 +925,13 @@ class MainWindow(QMainWindow):
" (*.in *.ini *.conf *.cfg)"
ans = QFileDialog().getOpenFileName(self, caption=caption,
filter=filt, dir=locroot)
infile = ans[0]
if ans[0]:
infile = ans[0]
else:
QMessageBox.information(self,
self.tr('No infile selected'),
self.tr('Inputfile necessary for localization.'))
return
settings.setValue("{0}/inputFile".format(loctool), infile)
settings.sync()
if loctool == 'nll':