From a36f2db160834e4932ae54b7f4e9932b661ebd62 Mon Sep 17 00:00:00 2001 From: Wescoeur Date: Tue, 13 Jun 2017 21:43:21 +0200 Subject: [PATCH] feat(src/app/App): create splash screen before main window --- linphone-desktop/src/app/App.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/linphone-desktop/src/app/App.cpp b/linphone-desktop/src/app/App.cpp index 5ce659547..f224f9ab5 100644 --- a/linphone-desktop/src/app/App.cpp +++ b/linphone-desktop/src/app/App.cpp @@ -192,15 +192,8 @@ void App::initContentApp () { // Enable notifications. createNotifier(); - // Load main view. - qInfo() << QStringLiteral("Loading main view..."); - mEngine->load(QUrl(QML_VIEW_MAIN_WINDOW)); - if (mEngine->rootObjects().isEmpty()) - qFatal("Unable to open main window."); - - bool selfTest = mParser.isSet("self-test"); - // Load splashscreen. + bool selfTest = mParser.isSet("self-test"); if (!selfTest) activeSplashScreen(this); // Set a self test limit. @@ -209,6 +202,12 @@ void App::initContentApp () { qFatal("Self test failed. :("); }); + // Load main view. + qInfo() << QStringLiteral("Loading main view..."); + mEngine->load(QUrl(QML_VIEW_MAIN_WINDOW)); + if (mEngine->rootObjects().isEmpty()) + qFatal("Unable to open main window."); + QObject::connect( CoreManager::getInstance()->getHandlers().get(), &CoreHandlers::coreStarted,