Fixed issue 40019
authorHimanshu Talwar <himanshu.t@samsung.com>
Thu, 30 May 2013 11:54:51 +0000 (17:24 +0530)
committerHimanshu Talwar <himanshu.t@samsung.com>
Thu, 30 May 2013 11:54:51 +0000 (17:24 +0530)
Change-Id: Ic838175e66d5ce2e9e8db78c0f895f5b2ae7884e
Signed-off-by: Himanshu Talwar <himanshu.t@samsung.com>
inc/GlAllListEditorPanel.h
inc/GlAllListSelectionPanel.h
src/GlAllListEditorPanel.cpp
src/GlAllListSelectionPanel.cpp
src/GlFileListEditorForm.cpp

index 7694e30..bbae3f7 100644 (file)
@@ -75,6 +75,7 @@ public:
        virtual result OnRequestEmail(void);
        virtual result OnRequestSlideShow(void);
        result OnRequestRotate(RotateMode rotateMode);
+       void CancelUpdateProgress(void);
 
        virtual void OnFileOpInvalidate(enum FileActionMode actionId);
        virtual void OnFileOpComplete(enum FileActionMode actionId, enum FileActionCompleteRes);
index 8233fb7..1393ec8 100644 (file)
@@ -57,6 +57,7 @@ public:
        result OnRequestMoveTo(Tizen::Base::String& destDirectory);
        result OnRequestSlideShow(void);
        result OnRotateRequested(RotateMode rotateMode);
+       void CancelUpdateProgress(void);
 
        virtual result OnInitializing(void);
        virtual result OnTerminating(void);
index a5155bc..ac64d42 100644 (file)
@@ -902,3 +902,13 @@ AllListEditorPanel::OnRequestRotate(RotateMode rotateMode)
        }
        return E_SUCCESS;
 }
+
+void AllListEditorPanel::CancelUpdateProgress(void)
+{
+       if( __pFileUpdateTimer!= null && __pFileUpdateTimer->IsStarted())
+       {
+               __pFileUpdateTimer->Cancel();
+               delete __pFileUpdateTimer;
+               __pFileUpdateTimer = null;
+       }
+}
index 76b5fb6..76b2e50 100644 (file)
@@ -767,3 +767,12 @@ AllListSelectionPanel::OnRotateRequested(RotateMode rotateMode)
        return E_SUCCESS;
 }
 
+void AllListSelectionPanel::CancelUpdateProgress(void)
+{
+       if( __pFileUpdateTimer!= null && __pFileUpdateTimer->IsStarted())
+       {
+               __pFileUpdateTimer->Cancel();
+               delete __pFileUpdateTimer;
+               __pFileUpdateTimer = null;
+       }
+}
index f2126c4..4adca41 100644 (file)
@@ -901,6 +901,23 @@ FileListEditorForm::OnContentUpdated()
                }
        }
 
+       if (pSceneManager->GetCurrentSceneId() == IDSCN_ALL_LIST_EDITOR)
+       {
+               AllListEditorPanel* pEditorPanel = dynamic_cast<AllListEditorPanel*>(pSceneManager->GetCurrentScene()->GetPanel());
+               if (pEditorPanel != null)
+               {
+                       pEditorPanel->CancelUpdateProgress();
+               }
+       }
+       else if (pSceneManager->GetCurrentSceneId() == IDSCN_ALL_LIST_SELECTION)
+       {
+               AllListSelectionPanel* pSelectionPanel = dynamic_cast<AllListSelectionPanel*>(pSceneManager->GetCurrentScene()->GetPanel());
+               if (pSelectionPanel != null)
+               {
+                       pSelectionPanel->CancelUpdateProgress();
+               }
+       }
+
        if (__pPresentationModel->GetAppControlMode() == APPCONTROL_MODE_PICK
                        && pSceneManager->GetCurrentSceneId() == IDSCN_IMAGE_LIST_EDITOR)
        {