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 @@
#include <QDir>
#include <QCommandLineParser>
#include <QStandardPaths>
#include <QTimer>
// KDE
#include <KActionCollection>
......@@ -258,7 +259,7 @@ int Application::newInstance()
// If not restoring size from last time or only adding new tab,
// resize window to chosen profile size (see Bug:345403)
if (createdNewMainWindow) {
QTimer::singleShot(0, window, &MainWindow::show);
} else {
window->setWindowState(window->windowState() & (~Qt::WindowMinimized | Qt::WindowActive));
Supports Markdown
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