From 89ee4c2361d45f59372ff469cc605477c113d825 Mon Sep 17 00:00:00 2001 From: miruka Date: Tue, 10 Mar 2020 05:41:40 -0400 Subject: [PATCH] Reselect the right room when main pane loses focus --- src/gui/MainPane/MainPane.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/MainPane/MainPane.qml b/src/gui/MainPane/MainPane.qml index f5b955f7..ce8d464a 100644 --- a/src/gui/MainPane/MainPane.qml +++ b/src/gui/MainPane/MainPane.qml @@ -10,6 +10,9 @@ HDrawer { color: theme.mainPane.background minimumSize: theme.controls.avatar.size + theme.spacing * 2 + onHasFocusChanged: + if (! hasFocus) mainPaneList.detachedCurrentIndex = false + readonly property bool hasFocus: toolBar.filterField.activeFocus readonly property alias mainPaneList: mainPaneList