Reselect the right room when main pane loses focus

This commit is contained in:
miruka 2020-03-10 05:41:40 -04:00
parent aafbecfdda
commit 89ee4c2361

View File

@ -10,6 +10,9 @@ HDrawer {
color: theme.mainPane.background color: theme.mainPane.background
minimumSize: theme.controls.avatar.size + theme.spacing * 2 minimumSize: theme.controls.avatar.size + theme.spacing * 2
onHasFocusChanged:
if (! hasFocus) mainPaneList.detachedCurrentIndex = false
readonly property bool hasFocus: toolBar.filterField.activeFocus readonly property bool hasFocus: toolBar.filterField.activeFocus
readonly property alias mainPaneList: mainPaneList readonly property alias mainPaneList: mainPaneList