Fixed issue where the view mode from the stored settings was not reflected on startup

FossilOrigin-Name: b04aa4a2a385325b9b50e4ce700a364b05c7b70b
This commit is contained in:
kostas
2012-04-14 06:43:14 +00:00
parent 97cbd30c35
commit 5d49c73919
3 changed files with 10 additions and 7 deletions

View File

@ -1135,7 +1135,10 @@ void MainWindow::loadSettings()
if(qsettings.contains("ViewIgnored"))
ui->actionViewIgnored->setChecked(qsettings.value("ViewIgnored").toBool());
if(qsettings.contains("ViewAsList"))
{
ui->actionViewAsList->setChecked(qsettings.value("ViewAsList").toBool());
ui->treeView->setVisible(qsettings.value("ViewAsList").toBool() == VIEWMODE_LIST);
}
}
//------------------------------------------------------------------------------