Fixed issue 47088
authorHimanshu <himanshu.t@samsung.com>
Wed, 24 Jul 2013 05:45:42 +0000 (11:15 +0530)
committerHimanshu <himanshu.t@samsung.com>
Wed, 24 Jul 2013 05:45:42 +0000 (11:15 +0530)
Change-Id: Id8f17e1e4bf9fc60f52c440a71655171dfd8a254
Signed-off-by: Himanshu <himanshu.t@samsung.com>
src/IvImageViewerForm.cpp

index ae5270d..2b36c42 100644 (file)
@@ -1634,10 +1634,14 @@ ImageViewerForm::OnActionPerformed(const Control& source, int actionId)
 
        case IDA_PANEL_HEADER_DETAILS_RENAME:
        {
-               ArrayList* pSelectedIndex = new (std::nothrow) ArrayList(SingleObjectDeleter);
-               pSelectedIndex->Construct();
-               pSelectedIndex->Add(new (std::nothrow) Integer(__pGallery->GetCurrentItemIndex()));
-               pSceneManager->GoForward(ForwardSceneTransition(IDSCN_IMAGE_NAME_EDITOR), pSelectedIndex);
+
+               if ( __isDetail == false)
+               {
+                       ArrayList* pSelectedIndex = new (std::nothrow) ArrayList(SingleObjectDeleter);
+                       pSelectedIndex->Construct();
+                       pSelectedIndex->Add(new (std::nothrow) Integer(__pGallery->GetCurrentItemIndex()));
+                       pSceneManager->GoForward(ForwardSceneTransition(IDSCN_IMAGE_NAME_EDITOR), pSelectedIndex);
+               }
        }
        break;