diff options
author | Thomas Hartmann <[email protected]> | 2022-05-23 10:19:55 +0200 |
---|---|---|
committer | Tim Jenssen <[email protected]> | 2022-05-23 13:59:17 +0000 |
commit | 86bfa8d4af45582192d2cff66c44abcfb86266fe (patch) | |
tree | a049341573663772ba3a0fcb9095b199d77c135e | |
parent | ac1e86fe74b6719171998c18a222658aa4252cbe (diff) |
StudioWelcome: Move opening of dialogs to event loopqds/v3.4.0qds-3.4
Opening those dialogs can crash, if the qmlengine is reset.
We reset the qmlengine if we download new data.
Task-number: QDS-6962
Change-Id: Ia717e0f4534639f083604e9e5f33800cfebbe769
Reviewed-by: Miikka Heikkinen <[email protected]>
(cherry picked from commit 1d6363d84d542f8c276f33999ca8ce7845a1b8c7)
Reviewed-by: Tim Jenssen <[email protected]>
-rw-r--r-- | src/plugins/studiowelcome/studiowelcomeplugin.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/studiowelcome/studiowelcomeplugin.cpp b/src/plugins/studiowelcome/studiowelcomeplugin.cpp index 140e4c0ec90..7a4e09e92a3 100644 --- a/src/plugins/studiowelcome/studiowelcomeplugin.cpp +++ b/src/plugins/studiowelcome/studiowelcomeplugin.cpp @@ -213,12 +213,16 @@ public: Q_INVOKABLE void createProject() { - ProjectExplorer::ProjectExplorerPlugin::openNewProjectDialog(); + QTimer::singleShot(0, []() { + ProjectExplorer::ProjectExplorerPlugin::openNewProjectDialog(); + }); } Q_INVOKABLE void openProject() { - ProjectExplorer::ProjectExplorerPlugin::openOpenProjectDialog(); + QTimer::singleShot(0, []() { + ProjectExplorer::ProjectExplorerPlugin::openOpenProjectDialog(); + }); } Q_INVOKABLE void openProjectAt(int row) |