Commit b871ced9 authored by Jan Möbius's avatar Jan Möbius

Set pick toolbars to default in scene again.

refs #480

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15665 383ad7c9-94d9-4d36-a494-682f7c89f535
parent d37aacbc
...@@ -189,7 +189,7 @@ void CoreWidget::setActivePickToolBar(QToolBar* _tool) { ...@@ -189,7 +189,7 @@ void CoreWidget::setActivePickToolBar(QToolBar* _tool) {
// Hide all picking toolbars // Hide all picking toolbars
hidePickToolBar(); hidePickToolBar();
if ( OpenFlipperSettings().value("Core/Gui/ToolBars/PickToolbarInScene",false).toBool() ) { if ( OpenFlipperSettings().value("Core/Gui/ToolBars/PickToolbarInScene",true).toBool() ) {
// Try to find toolbar in local map ( if it is in the gl scene // Try to find toolbar in local map ( if it is in the gl scene
PickToolBarMap::iterator ret = curPickingToolbarItems_.find(_tool); PickToolBarMap::iterator ret = curPickingToolbarItems_.find(_tool);
......
...@@ -274,7 +274,7 @@ void OptionsWidget::showEvent ( QShowEvent * /*event*/ ) { ...@@ -274,7 +274,7 @@ void OptionsWidget::showEvent ( QShowEvent * /*event*/ ) {
// UI settings // UI settings
toolBoxOrientation->setCurrentIndex((OpenFlipperSettings().value("Core/Gui/ToolBoxes/ToolBoxOnTheRight",true).toBool() ? 0 : 1)); toolBoxOrientation->setCurrentIndex((OpenFlipperSettings().value("Core/Gui/ToolBoxes/ToolBoxOnTheRight",true).toBool() ? 0 : 1));
pickToolbarInScene->setChecked(OpenFlipperSettings().value("Core/Gui/ToolBars/PickToolbarInScene",false).toBool()); pickToolbarInScene->setChecked(OpenFlipperSettings().value("Core/Gui/ToolBars/PickToolbarInScene",true).toBool());
//stereo //stereo
...@@ -581,7 +581,7 @@ void OptionsWidget::slotApply() { ...@@ -581,7 +581,7 @@ void OptionsWidget::slotApply() {
OpenFlipperSettings().setValue("Core/Gui/ToolBoxes/ToolBoxOnTheRight", (toolBoxOrientation->currentIndex() == 0)); OpenFlipperSettings().setValue("Core/Gui/ToolBoxes/ToolBoxOnTheRight", (toolBoxOrientation->currentIndex() == 0));
// Render picking toolbar into scene // Render picking toolbar into scene
if ( OpenFlipperSettings().value("Core/Gui/ToolBars/PickToolbarInScene",false).toBool() != pickToolbarInScene->isChecked() ) { if ( OpenFlipperSettings().value("Core/Gui/ToolBars/PickToolbarInScene",true).toBool() != pickToolbarInScene->isChecked() ) {
OpenFlipperSettings().setValue("Core/Gui/ToolBars/PickToolbarInScene", pickToolbarInScene->isChecked()); OpenFlipperSettings().setValue("Core/Gui/ToolBars/PickToolbarInScene", pickToolbarInScene->isChecked());
restartRequired_ = true; restartRequired_ = 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