summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2022-05-23 10:19:55 +0200
committerTim Jenssen <tim.jenssen@qt.io>2022-05-23 13:59:17 +0000
commit86bfa8d4af45582192d2cff66c44abcfb86266fe (patch)
treea049341573663772ba3a0fcb9095b199d77c135e
parentac1e86fe74b6719171998c18a222658aa4252cbe (diff)
downloadqt-creator-qds-3.4.tar.gz
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 <miikka.heikkinen@qt.io> (cherry picked from commit 1d6363d84d542f8c276f33999ca8ce7845a1b8c7) Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r--src/plugins/studiowelcome/studiowelcomeplugin.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/studiowelcome/studiowelcomeplugin.cpp b/src/plugins/studiowelcome/studiowelcomeplugin.cpp
index 140e4c0ec9..7a4e09e92a 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)