aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/studiowelcome
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2019-06-20 17:28:21 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2019-06-21 10:37:23 +0000
commit55556bdfd1b33ca4bb2f56d1e45bb36a33e2d936 (patch)
tree8b44de1ef2ff8d7a12e05130867a9a8292cfcf79 /src/plugins/studiowelcome
parent3acbd6032fe6809fcd373a48a2ee83d968136dea (diff)
WelcomePlugin: Close slpash screen after 15 seconds
Some window managers on Linux have issues with the spash screen and it cannot be closed. Change-Id: I20d1f3365f671b67b0c50950cf739430aa58086d Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/studiowelcome')
-rw-r--r--src/plugins/studiowelcome/studiowelcomeplugin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/studiowelcome/studiowelcomeplugin.cpp b/src/plugins/studiowelcome/studiowelcomeplugin.cpp
index cc22057660..508ab20b83 100644
--- a/src/plugins/studiowelcome/studiowelcomeplugin.cpp
+++ b/src/plugins/studiowelcome/studiowelcomeplugin.cpp
@@ -243,6 +243,11 @@ void StudioWelcomePlugin::extensionsInitialized()
s_view->show();
s_view->raise();
+
+ QTimer::singleShot(15000, [](){
+ if (s_view)
+ s_view->close();
+ });
});
}
}