homescreenapp/stateplugins/hshomescreenstateplugin/src/hsbackuprestorestate.cpp
changeset 77 4b195f3bea29
parent 60 30f14686fb04
equal deleted inserted replaced
61:2b1b11a301d2 77:4b195f3bea29
    24 #include "hsscene.h"
    24 #include "hsscene.h"
    25 #include "hsbackuprestoreobserver.h"
    25 #include "hsbackuprestoreobserver.h"
    26 #include "hsbackuprestorestate.h"
    26 #include "hsbackuprestorestate.h"
    27 #include "hsscene.h"
    27 #include "hsscene.h"
    28 #include "hsgui.h"
    28 #include "hsgui.h"
       
    29 
    29 
    30 
    30 /*!
    31 /*!
    31     \class HsBackupRestoreState
    32     \class HsBackupRestoreState
    32     \ingroup group_hshomescreenstateplugin
    33     \ingroup group_hshomescreenstateplugin
    33     \brief Home screen Bacup/Restore state.
    34     \brief Home screen Bacup/Restore state.
    93    Deletes idle view
    94    Deletes idle view
    94 */
    95 */
    95 void HsBackupRestoreState::deleteIdleView()
    96 void HsBackupRestoreState::deleteIdleView()
    96 {
    97 {
    97     // Delete idle view
    98     // Delete idle view
    98     QScopedPointer<HbView> idleView(HsGui::takeIdleView());
    99     HsGui::instance()->cleanupIdleUi();
    99 
       
   100     if (idleView){
       
   101         HbAction *navigationAction(idleView->navigationAction());
       
   102         idleView->setNavigationAction(0);
       
   103         delete navigationAction;
       
   104         HsScene::mainWindow()->removeView(idleView.data());
       
   105     }
       
   106 }
   100 }