Commit 6b9c621c authored by Jan Möbius's avatar Jan Möbius

Always add the main and viewer toolbar in view modes

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8779 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6659008a
......@@ -109,6 +109,8 @@ void CoreWidget::slotAddViewModeToolboxes(QString _mode, bool _custom, QStringLi
vm->custom = _custom;
vm->icon = "Unknown.png";
vm->visibleToolbars = QString("Main Toolbar;Viewer Toolbar").split(";");
if (_custom) {
viewModes_.push_back(vm);
} else {
......@@ -121,6 +123,7 @@ void CoreWidget::slotAddViewModeToolboxes(QString _mode, bool _custom, QStringLi
}
viewModes_.insert(i,vm);
}
} else {
vm = viewModes_[id];
}
......@@ -168,6 +171,14 @@ void CoreWidget::slotAddViewModeToolbars(QString _mode, bool _custom, QStringLis
vm = viewModes_[id];
}
// Always add the viewer Toolbar
if ( ! _usedToolbars.contains("Viewer Toolbar") )
_usedToolbars.prepend("Viewer Toolbar");
// Always add the main Toolbar
if ( ! _usedToolbars.contains("Main Toolbar") )
_usedToolbars.prepend("Main Toolbar");
vm->visibleToolbars = _usedToolbars;
initViewModes();
......
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