Commit ce83f745 authored by Marco Martin's avatar Marco Martin
Browse files

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 936611e2
......@@ -337,6 +337,8 @@ void SettingsBase::changePlugin()
stackedWidget->addWidget(activeView->mainWidget());
}
show();
// Handle the tooltips
qDeleteAll( tooltipManagers );
tooltipManagers.clear();
......
......@@ -66,7 +66,6 @@ int main( int argc, char *argv[] )
aboutData.processCommandLine(&parser);
SettingsBase *mainWindow = new SettingsBase();
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