Commit c78f45de authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark Committed by Kurt Hindenburg
Browse files

shave ~10% of the startup time

parent 31969ef8
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <QDir> #include <QDir>
#include <QCommandLineParser> #include <QCommandLineParser>
#include <QStandardPaths> #include <QStandardPaths>
#include <QTimer>
// KDE // KDE
#include <KActionCollection> #include <KActionCollection>
...@@ -258,7 +259,7 @@ int Application::newInstance() ...@@ -258,7 +259,7 @@ int Application::newInstance()
// If not restoring size from last time or only adding new tab, // If not restoring size from last time or only adding new tab,
// resize window to chosen profile size (see Bug:345403) // resize window to chosen profile size (see Bug:345403)
if (createdNewMainWindow) { if (createdNewMainWindow) {
window->show(); QTimer::singleShot(0, window, &MainWindow::show);
} else { } else {
window->setWindowState(window->windowState() & (~Qt::WindowMinimized | Qt::WindowActive)); window->setWindowState(window->windowState() & (~Qt::WindowMinimized | Qt::WindowActive));
window->show(); window->show();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment