From d27d4df8ff711a573955182a4fa2decf067ba2a2 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 1 Mar 2016 13:35:46 +0100 Subject: [PATCH] Move file open queue handling later At the point where the file open queue was processed, the events weren't handled yet. Here's to hoping that they will be handled at this point (but I must commit before testing...). Contributes to issue CURA-730. --- cura/CuraApplication.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index f0c7008b46..1b41cdda2f 100644 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -82,9 +82,6 @@ class CuraApplication(QtApplication): super().__init__(name = "cura", version = CuraVersion) - for file_name in self._open_file_queue: #Open all the files that were queued up while plug-ins were loading. - self._openFile(file_name) - self.setWindowIcon(QIcon(Resources.getPath(Resources.Images, "cura-icon.png"))) self.setRequiredPlugins([ @@ -212,6 +209,8 @@ class CuraApplication(QtApplication): for file in self.getCommandLineOption("file", []): self._openFile(file) + for file_name in self._open_file_queue: #Open all the files that were queued up while plug-ins were loading. + self._openFile(file_name) self.exec_()