From abdc63cc90118c2442cde43246038d1405c6ca93 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sun, 22 Nov 2020 12:19:58 +0100 Subject: [PATCH] fix room page list appearing twice after logout --- qml/main.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qml/main.qml b/qml/main.qml index 498b5853f..ce39ffa04 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -170,8 +170,10 @@ Kirigami.ApplicationWindow { } onConnectionDropped: { - if(Controller.accountCount === 0) - pageStack.replace("qrc:/imports/NeoChat/Page/LoginPage.qml") + if (Controller.accountCount === 0) { + pageStack.clear(); + pageStack.replace("qrc:/imports/NeoChat/Page/LoginPage.qml"); + } } onGlobalErrorOccured: showPassiveNotification(error + ": " + detail)