diff --git a/QtPyLoT.py b/QtPyLoT.py index 5e5f64a8..93360d2e 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -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?"),