NABI_SE issues resolved
[apps/osp/MyFiles.git] / src / MfSubBaseFileManageForm.cpp
index c1633d4..b1be136 100644 (file)
@@ -969,7 +969,6 @@ SubBaseFileManageForm::ShareFile(ShareVia shareType)
        AppControl* pAc = null;
        const String* pAttachKey = null;
        const String* pUriType = null;
-       //const HashMap* pResultHash = null;
        result r = E_SUCCESS;
 
        HashMap dataList;
@@ -977,6 +976,9 @@ SubBaseFileManageForm::ShareFile(ShareVia shareType)
        MessageBox messageBox;
        int modalResult = 0;
 
+       //Disable the form to avoid any more clicks, if the share button is already clicked
+       SetEnabled(false);
+
        dataList.Construct();
        pAttachKey = new (std::nothrow) const String(L"http://tizen.org/appcontrol/data/path");
 
@@ -1001,7 +1003,6 @@ SubBaseFileManageForm::ShareFile(ShareVia shareType)
        }
        break;
        }
-       //pResultHash = FolderEntryEditorPresentationModel::GetInstance()->GetCheckedList();
 
        if (_pFileManager != null && _pFileManager->IsCheckedListNull() == false)
        {
@@ -1047,6 +1048,7 @@ SubBaseFileManageForm::ShareFile(ShareVia shareType)
                //to avoid any file modification event
                if ( r == E_SUCCESS)
                {
+                       ((MyFilesApp*) Application::GetInstance())->SetAppControlLaunched(true);
                        if(_pFileEventManager != null)
                        {
                                _pFileEventManager->RemovePath(FolderNavigationPresentationModel::GetCurrentPath());
@@ -1824,7 +1826,9 @@ void
 SubBaseFileManageForm::OnAppControlCompleted(void)
 {
        AppLogDebug("SubBaseFileManageForm::OnAppControlCompleted");
-       //On coming back from Email/Message appcontrol, register the FileEvent Listener back
+       //On coming back from Email/Message appcontrol, Enable the Form and
+       //register the FileEvent Listener back
+       SetEnabled(true);
        if(_pFileEventManager == null)
        {
                _pFileEventManager = new (std::nothrow)FileEventManager();
@@ -1832,3 +1836,9 @@ SubBaseFileManageForm::OnAppControlCompleted(void)
        }
        _pFileEventManager->AddPath(FolderNavigationPresentationModel::GetCurrentPath(), FILE_EVENT_TYPE_DELETE | FILE_EVENT_TYPE_MOVE_SELF);
 }
+
+void
+SubBaseFileManageForm::OnSettingValueChanged(void)
+{
+       //Empty Implementation.
+}