From 486ff5c239aa9a01f1ced605d50284510c1fa831 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr> Date: Fri, 19 Jan 2024 10:35:36 +0100 Subject: [PATCH] Mainwindow: Minor change. --- src/View/MainWindow.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/View/MainWindow.py b/src/View/MainWindow.py index 41a25c07..809c3a4d 100644 --- a/src/View/MainWindow.py +++ b/src/View/MainWindow.py @@ -891,6 +891,9 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit): if self._study is None: return + if self._study.filename == "": + return + dialog = QFileDialog(self) dialog.setFileMode(QFileDialog.FileMode.ExistingFile) dialog.setDefaultSuffix(".BIN") -- GitLab