homescreenapp/stateplugins/hshomescreenstateplugin/src/hsbackuprestorestate.cpp
changeset 69 87476091b3f5
parent 62 341166945d65
--- a/homescreenapp/stateplugins/hshomescreenstateplugin/src/hsbackuprestorestate.cpp	Wed Jul 14 15:53:30 2010 +0300
+++ b/homescreenapp/stateplugins/hshomescreenstateplugin/src/hsbackuprestorestate.cpp	Fri Jul 23 13:47:57 2010 +0300
@@ -27,6 +27,7 @@
 #include "hsscene.h"
 #include "hsgui.h"
 
+
 /*!
     \class HsBackupRestoreState
     \ingroup group_hshomescreenstateplugin
@@ -95,12 +96,5 @@
 void HsBackupRestoreState::deleteIdleView()
 {
     // Delete idle view
-    QScopedPointer<HbView> idleView(HsGui::takeIdleView());
-
-    if (idleView){
-        HbAction *navigationAction(idleView->navigationAction());
-        idleView->setNavigationAction(0);
-        delete navigationAction;
-        HsScene::mainWindow()->removeView(idleView.data());
-    }
+    HsGui::instance()->cleanupIdleUi();
 }