From b2afa06ee120a180dc147f55f0dcc40205e7223f Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Mon, 9 Dec 2024 17:49:25 +0100 Subject: [PATCH] Creating new files now actually works. Somehow PyQt passed something to the new_file()-function, and it crashed every time because the variable was the wrong type. --- connect_gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect_gui.py b/connect_gui.py index 086f55d..d9ee6c1 100644 --- a/connect_gui.py +++ b/connect_gui.py @@ -2,7 +2,7 @@ def connect_gui(app): app.gui.main_window.openFile.triggered.connect(app.file_actions.open_files) - app.gui.main_window.newFile.triggered.connect(app.file_actions.create_file) + app.gui.main_window.newFile.triggered.connect(lambda: app.file_actions.create_file()) app.gui.main_window.saveFile.triggered.connect(app.file_actions.save_current_file) app.gui.main_window.saveFileAs.triggered.connect(app.file_actions.save_current_file_as)