From a97717a624b4fac8d9b00aa21b3b23770564c2ad Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby Date: Mon, 20 Oct 2025 18:48:40 +0200 Subject: [PATCH] Pamhyr: Window: Fix title without study opened. --- src/View/Tools/PamhyrWindow.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/View/Tools/PamhyrWindow.py b/src/View/Tools/PamhyrWindow.py index 69b8623b..321c2864 100644 --- a/src/View/Tools/PamhyrWindow.py +++ b/src/View/Tools/PamhyrWindow.py @@ -186,12 +186,13 @@ class PamhyrWindow(ASubMainWindow, ListedSubWindow, PamhyrWindowTools): def _set_title(self): title = self._title - if self._study.is_read_only(): - title = "⛔ " + title + if self._study is not None: + if self._study.is_read_only(): + title = "⛔ " + title - scenario = self._study.status.scenario - if scenario is not None and scenario.name != "default": - title += f" | {scenario.name}" + scenario = self._study.status.scenario + if scenario is not None and scenario.name != "default": + title += f" | {scenario.name}" self.ui.setWindowTitle(title)