Skip to content

Commit

Permalink
- hide animation window when switching perspective
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich committed Aug 31, 2016
1 parent 8ecc3f0 commit 0cd7cf5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion OMEdit/OMEditGUI/MainWindow.cpp
Expand Up @@ -3009,7 +3009,7 @@ void MainWindow::switchToWelcomePerspective()
mpGDBLoggerDockWidget->hide();
mpPlotToolBar->setEnabled(false);
mpAnimationToolBar->setEnabled(false);

mpAnimationWindowContainer->hide();
}

/*!
Expand All @@ -3025,6 +3025,7 @@ void MainWindow::switchToModelingPerspective()
mpVariablesDockWidget->hide();
mpPlotToolBar->setEnabled(false);
mpAnimationToolBar->setEnabled(false);
mpAnimationWindowContainer->hide();

// In case user has tabbed the dock widgets then make LibraryWidget active.
QList<QDockWidget*> tabifiedDockWidgetsList = tabifiedDockWidgets(mpLibraryDockWidget);
Expand Down Expand Up @@ -3071,6 +3072,7 @@ void MainWindow::switchToPlottingPerspective()
mpUndoAction->setEnabled(false);
mpRedoAction->setEnabled(false);
mpAnimationToolBar->setEnabled(false);
mpAnimationWindowContainer->hide();
mpModelSwitcherToolButton->setEnabled(false);
// if not plotwindow is opened then open one for user
if (mpPlotWindowContainer->subWindowList().size() == 0) {
Expand Down Expand Up @@ -3104,6 +3106,7 @@ void MainWindow::switchToAlgorithmicDebuggingPerspective()
mpVariablesDockWidget->hide();
mpPlotToolBar->setEnabled(false);
mpAnimationToolBar->setEnabled(false);
mpAnimationWindowContainer->hide();
// In case user has tabbed the dock widgets then make LibraryWidget active.
QList<QDockWidget*> tabifiedDockWidgetsList = tabifiedDockWidgets(mpLibraryDockWidget);
if (tabifiedDockWidgetsList.size() > 0) {
Expand Down

0 comments on commit 0cd7cf5

Please sign in to comment.