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:
parent
4769a78c50
commit
fc8a4d6e16
2 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -143,6 +143,7 @@ SidePanelBase {
|
|||
}
|
||||
|
||||
function open(index) {
|
||||
indexSelected(-1)
|
||||
indexSelected(index)
|
||||
root.currentIndex = index
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue