From adc7736306afbeed72c32718e568b70abeffb12f Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr> Date: Tue, 4 Jul 2023 13:32:42 +0200 Subject: [PATCH] MainWindow, Config: Minor change. --- src/View/MainWindow.py | 2 +- src/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/View/MainWindow.py b/src/View/MainWindow.py index 1b5f06e3..f3ab0acb 100644 --- a/src/View/MainWindow.py +++ b/src/View/MainWindow.py @@ -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" diff --git a/src/config.py b/src/config.py index 16421b8d..b58325be 100644 --- a/src/config.py +++ b/src/config.py @@ -218,7 +218,7 @@ class Config(SQL): self.backup_max = 10 # Editor - self.editor = "emacs @file" + self.editor = "editor @file" # Languages self.lang = "" -- GitLab