--- 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();
+ }
}