[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 fd8abd18b5
commit 94236190ba

View File

@ -935,7 +935,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':