radioapp/radiowidgets/src/radiowindow.cpp
changeset 47 74b7c6e79031
parent 38 f8c3d4e6102c
child 51 bbebb0235466
--- a/radioapp/radiowidgets/src/radiowindow.cpp	Mon Aug 23 14:17:50 2010 +0300
+++ b/radioapp/radiowidgets/src/radiowindow.cpp	Fri Sep 03 12:25:04 2010 +0300
@@ -217,10 +217,6 @@
     }
 
     RadioViewBase* previousView = static_cast<RadioViewBase*>( currentView() );
-    if ( previousView && previousView->isTransient() ) {
-        removeView( previousView );
-        previousView->deleteLater();
-    }
 
     bool viewCreated = false;
     if ( !aMember->isInitialized() ) {
@@ -254,4 +250,9 @@
     aMember->updateOrientation( orientation(), viewCreated );
 
     setCurrentView( aMember, true, flags );
+
+    if ( previousView && previousView->isTransient() ) {
+        removeView( previousView );
+        previousView->deleteLater();
+    }
 }