@@ -2993,7 +2993,7 @@ void MainWindow::switchToWelcomePerspective()
29932993 mpGDBLoggerDockWidget->hide ();
29942994 mpPlotToolBar->setEnabled (false );
29952995 mpAnimationToolBar->setEnabled (false );
2996-
2996+ mpAnimationWindowContainer-> hide ();
29972997}
29982998
29992999/* !
@@ -3009,6 +3009,7 @@ void MainWindow::switchToModelingPerspective()
30093009 mpVariablesDockWidget->hide ();
30103010 mpPlotToolBar->setEnabled (false );
30113011 mpAnimationToolBar->setEnabled (false );
3012+ mpAnimationWindowContainer->hide ();
30123013
30133014 // In case user has tabbed the dock widgets then make LibraryWidget active.
30143015 QList<QDockWidget*> tabifiedDockWidgetsList = tabifiedDockWidgets (mpLibraryDockWidget);
@@ -3055,6 +3056,7 @@ void MainWindow::switchToPlottingPerspective()
30553056 mpUndoAction->setEnabled (false );
30563057 mpRedoAction->setEnabled (false );
30573058 mpAnimationToolBar->setEnabled (false );
3059+ mpAnimationWindowContainer->hide ();
30583060 mpModelSwitcherToolButton->setEnabled (false );
30593061 // if not plotwindow is opened then open one for user
30603062 if (mpPlotWindowContainer->subWindowList ().size () == 0 ) {
@@ -3088,6 +3090,7 @@ void MainWindow::switchToAlgorithmicDebuggingPerspective()
30883090 mpVariablesDockWidget->hide ();
30893091 mpPlotToolBar->setEnabled (false );
30903092 mpAnimationToolBar->setEnabled (false );
3093+ mpAnimationWindowContainer->hide ();
30913094 // In case user has tabbed the dock widgets then make LibraryWidget active.
30923095 QList<QDockWidget*> tabifiedDockWidgetsList = tabifiedDockWidgets (mpLibraryDockWidget);
30933096 if (tabifiedDockWidgetsList.size () > 0 ) {
0 commit comments