[bugfix] cancelling localization now works and gives information about the localization state
This commit is contained in:
parent
cbbe019475
commit
a2ddd04b2f
@ -925,7 +925,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':
|
||||||
|
Loading…
Reference in New Issue
Block a user