Commit 3d3882a9 authored by Mike Kremer's avatar Mike Kremer

Avoid setting the default view mode each time the options widget has been quit...

Avoid setting the default view mode each time the options widget has been quit via "Ok" or "Apply" button. Also avoid reset of toolboxes.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10366 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c2af3820
......@@ -73,9 +73,12 @@ void Core::applyOptions(){
//Init ViewModes
coreWidget_->initViewModes();
//Set default Viewmode
if (OpenFlipper::Options::currentViewMode() != "")
coreWidget_->slotChangeView(OpenFlipper::Options::currentViewMode(), QStringList(), QStringList(), QStringList());
//Set default Viewmode (note: This always resets all toolboxes and should be skipped
// here. Setting the initial view mode is instead done when initializing the core
// and reading the ini-files.)
//if (OpenFlipper::Options::currentViewMode() != "")
// coreWidget_->slotChangeView(OpenFlipper::Options::currentViewMode(), QStringList(), QStringList(), QStringList());
//Set Fullscreen
if ( OpenFlipperSettings().value("Core/Gui/fullscreen",false).toBool() )
coreWidget_->setWindowState( coreWidget_->windowState() | Qt::WindowFullScreen);
......@@ -121,7 +124,7 @@ void Core::applyOptions(){
//set viewer properties
for (int i=0; i < PluginFunctions::viewers(); i++){
PluginFunctions::setDrawMode( OpenFlipper::Options::defaultDrawMode(i), i );
// PluginFunctions::setDrawMode( OpenFlipper::Options::defaultDrawMode(i), i );
PluginFunctions::setFixedView(OpenFlipper::Options::defaultViewingDirection(i), i );
//only switch projection here if an object is opened
......
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