Commit 36e43fe3 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(src/app/App): close correctly splashscreen

parent 076ae9a5
......@@ -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 () {
......
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