From 154a322dd35ff6c7b36f495f422e16f8c341527d Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Wed, 25 Oct 2023 10:57:57 +0200 Subject: [PATCH] Use replace instead of pop/push in order to destroy the Welcome page. The first pop will do nothing as the welcome page is the initial item. --- Linphone/view/App/Main.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Linphone/view/App/Main.qml b/Linphone/view/App/Main.qml index da25a88da..1558ab05b 100644 --- a/Linphone/view/App/Main.qml +++ b/Linphone/view/App/Main.qml @@ -20,8 +20,7 @@ Window { id: welcomePage WelcomePage { onStartButtonPressed: { - mainWindowStackView.pop(welcomePage) - mainWindowStackView.push(loginPage) + mainWindowStackView.replace(loginPage)// Replacing the first item will destroy the old. } } }