Commit d6e0bc1a authored by Matthias Möller's avatar Matthias Möller

fix reinitialization of viewmodes if toolbar is toogled (from hidden to visible)

refs #1380

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16096 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 7772a5fe
......@@ -766,6 +766,7 @@ CoreWidget::toggleToolbox() {
//toggle
showToolbox( OpenFlipperSettings().value("Core/Gui/ToolBoxes/hidden",false).toBool() );
}
//-----------------------------------------------------------------------------
......@@ -784,11 +785,7 @@ CoreWidget::showToolbox( bool _state ) {
toolBoxArea_->setVisible(false);
}else{
//reset last ViewMode
if (OpenFlipper::Options::currentViewMode().trimmed() == "")
setViewMode("All");
else
setViewMode( OpenFlipper::Options::currentViewMode() );
//show last view mode
toolBoxArea_->setVisible(true);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment