Commit 592c1e5d authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

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

Showing with 1 addition and 1 deletion
+1 -1
...@@ -435,7 +435,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit): ...@@ -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"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment