MainWindow: Minor fix of file name '.pamhyr' detection.

setup.py
Pierre-Antoine Rouby 2023-12-19 11:59:21 +01:00
parent cd3baf2870
commit 592c1e5dbc
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
"", "Pamhyr(*.pamhyr)"
)
if file_name[-4:] == ".pamhyr":
if file_name.rsplit(".", 1)[-1] == ".pamhyr":
self._study.filename = file_name
else:
self._study.filename = file_name + ".pamhyr"