[refs #200] corrected call to QFileDialog

This commit is contained in:
Sebastian Wehling-Benatelli 2016-09-05 10:16:12 +02:00
parent e6b788d423
commit e1e3d54f8e

View File

@ -962,7 +962,7 @@ class MainWindow(QMainWindow):
onset = pick.time
fninv = settings.value("inventoryFile", None)
if fninv is None:
fninv = QFileDialog.getOpenFileName()
fninv = QFileDialog.getOpenFileName(self, self.tr("Select inventory..."), self.tr("Select file"))
ans = QMessageBox.question(self, self.tr("Make default..."),
self.tr("New inventory filename set.\n" + \
"Do you want to make it the default value?"),