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

MainWindow, Config: Minor change.

Showing with 2 additions and 2 deletions
+2 -2
......@@ -229,7 +229,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
"", "Pamhyr(*.pamhyr)"
)
if file_name[-4:] == ".pamhyr":
if file_name.rsplit(".", 1)[-1] == "pamhyr":
self.model.filename = file_name
else:
self.model.filename = file_name + ".pamhyr"
......
......@@ -218,7 +218,7 @@ class Config(SQL):
self.backup_max = 10
# Editor
self.editor = "emacs @file"
self.editor = "editor @file"
# Languages
self.lang = ""
......
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