1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-19 15:05:40 +02:00

settingssidepanel: fix re-selection in single pane mode

Gitlab: #1130
Change-Id: Icfe9efc69d69b69fbcc5c2224241f89e0b9ccca9
This commit is contained in:
Xavier Jouslin de Noray 2023-05-26 12:07:52 -04:00 committed by Sébastien Blin
parent 4769a78c50
commit fc8a4d6e16
2 changed files with 2 additions and 1 deletions

View file

@ -45,7 +45,7 @@ DualPaneView {
function selectIndex(index) { viewNode.index = index }
// Override this predicate if needed.
property bool hasValidSelection: viewNode.index >= 0
property bool hasValidSelection: viewNode.index >= -1
onHasValidSelectionChanged: isSinglePaneChangedHandler()
// Override BaseView.dismiss with some selection logic.

View file

@ -143,6 +143,7 @@ SidePanelBase {
}
function open(index) {
indexSelected(-1)
indexSelected(index)
root.currentIndex = index
}