Commit e63bb075 authored by Marco Martin's avatar Marco Martin

delay show window

Summary:
show the window only after mainWidget() of the view has been called.
mainWidget creates the ui on demand, so at that point the qml scene will be there

Test Plan: no more empty window for some instants on startup

Reviewers: #plasma, sitter

Reviewed By: sitter

Subscribers: ngraham, sitter, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27170
parent 21b4de9c
......@@ -375,6 +375,8 @@ void SettingsBase::changePlugin()
stackedWidget->addWidget(activeView->mainWidget());
}
show();
// Handle the tooltips
qDeleteAll( tooltipManagers );
tooltipManagers.clear();
......
......@@ -96,7 +96,6 @@ int main( int argc, char *argv[] )
SettingsBase *mainWindow = new SettingsBase(mode);
mainWindow->show();
application.setMainWindow(mainWindow);
return application.exec();
}
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