mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
MainWindow: Minor fix of file name '.pamhyr' detection.
This commit is contained in:
1 parent
cd3baf2870
commit
592c1e5dbc
1 file changed
+1
-1
@@ -435,7 +435,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
|||||||
"", "Pamhyr(*.pamhyr)"
|
"", "Pamhyr(*.pamhyr)"
|
||||||
)
|
)
|
||||||
|
|
||||||
if file_name[-4:] == ".pamhyr":
|
if file_name.rsplit(".", 1)[-1] == ".pamhyr":
|
||||||
self._study.filename = file_name
|
self._study.filename = file_name
|
||||||
else:
|
else:
|
||||||
self._study.filename = file_name + ".pamhyr"
|
self._study.filename = file_name + ".pamhyr"
|
||||||
|
|||||||
Reference in new issue
Block a user