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.
This commit is contained in:
Ghostkeeper 2016-03-01 13:35:46 +01:00
parent 232713a019
commit d27d4df8ff
No known key found for this signature in database
GPG Key ID: 701948C5954A7385

View File

@ -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_()