From 99245e65b48cc4dc9e680f3a3f1e3659091824d0 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Fri, 24 Mar 2017 17:14:29 +0100 Subject: [PATCH] fix(src/app/App): use `close` instead of `deleteLater` on splash screen --- linphone-desktop/src/app/App.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/linphone-desktop/src/app/App.cpp b/linphone-desktop/src/app/App.cpp index 66ea7f135..d59f4f5f1 100644 --- a/linphone-desktop/src/app/App.cpp +++ b/linphone-desktop/src/app/App.cpp @@ -114,13 +114,7 @@ inline QQuickWindow *createSubWindow (App *app, const char *path) { inline void activeSplashScreen (App *app) { QQuickWindow *splash_screen = createSubWindow(app, QML_VIEW_SPLASH_SCREEN); - - QObject::connect( - CoreManager::getInstance(), &CoreManager::linphoneCoreCreated, splash_screen, [splash_screen]() { - splash_screen->hide(); - splash_screen->deleteLater(); - } - ); + QObject::connect(CoreManager::getInstance(), &CoreManager::linphoneCoreCreated, splash_screen, &QQuickWindow::close); } void App::initContentApp () {