Gui: fixes #12043: Treeview doesn't work if not in combo view mode
This commit is contained in:
committed by
Adrián Insaurralde Avalos
parent
100ab2a975
commit
e03fcf9c3f
@@ -461,6 +461,19 @@ void DlgSettingsGeneral::saveDockWindowVisibility()
|
||||
bool treeView = hGrp->GetGroup("TreeView")->GetBool("Enabled", false);
|
||||
bool propertyView = hGrp->GetGroup("PropertyView")->GetBool("Enabled", false);
|
||||
bool comboView = hGrp->GetGroup("ComboView")->GetBool("Enabled", true);
|
||||
|
||||
int index = -1;
|
||||
if (propertyView || treeView) {
|
||||
index = 1;
|
||||
}
|
||||
else if (comboView) {
|
||||
index = 0;
|
||||
}
|
||||
|
||||
if (index != ui->treeMode->currentIndex()) {
|
||||
requireRestart();
|
||||
}
|
||||
|
||||
switch (ui->treeMode->currentIndex()) {
|
||||
case 0:
|
||||
comboView = true;
|
||||
|
||||
Reference in New Issue
Block a user