From 36e43fe3910bb7527cbad0e548a0c702da270289 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Mon, 27 Mar 2017 15:57:07 +0200 Subject: [PATCH] fix(src/app/App): close correctly splashscreen --- linphone-desktop/src/app/App.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linphone-desktop/src/app/App.cpp b/linphone-desktop/src/app/App.cpp index 9788872f8..3efd5c41c 100644 --- a/linphone-desktop/src/app/App.cpp +++ b/linphone-desktop/src/app/App.cpp @@ -115,7 +115,10 @@ 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, &QQuickWindow::close); + QObject::connect(CoreManager::getInstance(), &CoreManager::linphoneCoreCreated, splash_screen, [splash_screen] { + splash_screen->close(); + splash_screen->deleteLater(); + }); } void App::initContentApp () {