Skip to content

Commit

Permalink
Move initialisation of m_EnabledInteractors until after the preferenc…
Browse files Browse the repository at this point in the history
…es have been read
  • Loading branch information
MattClarkson committed Jun 25, 2012
1 parent c795a5c commit bc188f0
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -317,6 +317,11 @@ void QmitkStdMultiWidgetEditor::CreateQtPartControl(QWidget* parent)
// Store the initial visibility status of the menu widget.
d->m_MenuWidgetsEnabled = d->m_StdMultiWidget->IsMenuWidgetEnabled();

this->GetSite()->GetPage()->AddPartListener(d->m_PartListener);

berry::IPreferences::Pointer prefs = this->GetPreferences();
this->OnPreferencesChanged(dynamic_cast<berry::IBerryPreferences*>(prefs.GetPointer()));

// Store the initial interactor status of the mouse mode.
if (d->m_StdMultiWidget->GetMouseModeSwitcher()->GetInteractionScheme() == mitk::MouseModeSwitcher::MITK )
{
Expand All @@ -327,11 +332,6 @@ void QmitkStdMultiWidgetEditor::CreateQtPartControl(QWidget* parent)
d->m_EnabledInteractors << INTERACTOR_PACS;
}

this->GetSite()->GetPage()->AddPartListener(d->m_PartListener);

berry::IPreferences::Pointer prefs = this->GetPreferences();
this->OnPreferencesChanged(dynamic_cast<berry::IBerryPreferences*>(prefs.GetPointer()));

this->RequestUpdate();
}
}
Expand Down

0 comments on commit bc188f0

Please sign in to comment.