Commit 4caf8ace authored by Jan Möbius's avatar Jan Möbius
Browse files

Set view when loading first object

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4750 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 42424bdd
...@@ -216,8 +216,10 @@ void Core::slotLoad(QString _filename, DataType _type, int& _id) { ...@@ -216,8 +216,10 @@ void Core::slotLoad(QString _filename, DataType _type, int& _id) {
// if this is the first object opend, reset the global draw mode of all examiners to standard draw mode // if this is the first object opend, reset the global draw mode of all examiners to standard draw mode
if ( PluginFunctions::object_count() == 1 && OpenFlipper::Options::gui() && !OpenFlipper::Options::loadingSettings() ) if ( PluginFunctions::object_count() == 1 && OpenFlipper::Options::gui() && !OpenFlipper::Options::loadingSettings() )
for ( unsigned int i = 0 ; i < OpenFlipper::Options::examinerWidgets() ; ++i ) for ( unsigned int i = 0 ; i < OpenFlipper::Options::examinerWidgets() ; ++i ) {
coreWidget_->examiner_widgets_[i]->drawMode( OpenFlipper::Options::standardDrawMode() ); coreWidget_->examiner_widgets_[i]->drawMode( OpenFlipper::Options::standardDrawMode() );
coreWidget_->examiner_widgets_[i]->viewAll();
}
// objectRoot_->dumpTree(); // objectRoot_->dumpTree();
} }
......
Supports Markdown
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