From 3db01a3cd1d8c10acdf4238433f124cdabeb2fee Mon Sep 17 00:00:00 2001 From: Agnibho Mondal Date: Sun, 10 Sep 2023 02:40:22 +0530 Subject: [PATCH] Bugfix: open file by arg --- window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/window.py b/window.py index 79da5cf..5845481 100644 --- a/window.py +++ b/window.py @@ -600,9 +600,9 @@ class MainWindow(QMainWindow): self.edit_prescriber.signal_save.connect(self.cmd_prescriber_reload) self.viewbox=ViewBox() + self.new_doc() if(config["filename"]): self.cmd_open(config["filename"]) - else: - self.new_doc() + self.setWindowIcon(QIcon(os.path.join("resource", "icon_medscript.ico"))) self.showMaximized() -- 2.39.2