Mainwindow: Minor change.

setup.py
Pierre-Antoine Rouby 2024-01-19 10:35:36 +01:00
parent 73475220e9
commit 486ff5c239
1 changed files with 3 additions and 0 deletions

View File

@ -891,6 +891,9 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
if self._study is None: if self._study is None:
return return
if self._study.filename == "":
return
dialog = QFileDialog(self) dialog = QFileDialog(self)
dialog.setFileMode(QFileDialog.FileMode.ExistingFile) dialog.setFileMode(QFileDialog.FileMode.ExistingFile)
dialog.setDefaultSuffix(".BIN") dialog.setDefaultSuffix(".BIN")