Skip to content
Snippets Groups Projects
Commit fc8a4d6e authored by Xavier Jouslin de Noray's avatar Xavier Jouslin de Noray Committed by Sébastien Blin
Browse files

settingssidepanel: fix re-selection in single pane mode

Gitlab: #1130
Change-Id: Icfe9efc69d69b69fbcc5c2224241f89e0b9ccca9
parent 4769a78c
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment