[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)" " (*.in *.ini *.conf *.cfg)"
ans = QFileDialog().getOpenFileName(self, caption=caption, ans = QFileDialog().getOpenFileName(self, caption=caption,
filter=filt, dir=locroot) filter=filt, dir=locroot)
if ans[0]:
infile = 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.setValue("{0}/inputFile".format(loctool), infile)
settings.sync() settings.sync()
if loctool == 'nll': if loctool == 'nll':