From: Jisung Ahn Date: Mon, 25 Feb 2013 02:58:03 +0000 (+0900) Subject: show fail popup when rename failed X-Git-Tag: 2.1b_release~3^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=362ef085bc12a78b4e8adaf199ae21376b1d81cc;p=apps%2Fhome%2Fug-image-viewer-efl.git show fail popup when rename failed Change-Id: I19f5c1e41ca9f697b624129687778f0bb0f9628d --- diff --git a/common/src/ivug-util.c b/common/src/ivug-util.c index 2a37f92..dca0e1c 100755 --- a/common/src/ivug-util.c +++ b/common/src/ivug-util.c @@ -140,6 +140,12 @@ bool ivug_rename_file(const char *src, const char *dst) return false; } + if (ecore_file_exists(dst) == EINA_TRUE) + { + MSG_UTIL_ERROR("Destination file is exist : %s", dst); + return false; + } + if (dst == NULL) { MSG_UTIL_ERROR("Destination file is NULL"); diff --git a/main/src/view/ivug-main-view-menu.cpp b/main/src/view/ivug-main-view-menu.cpp index 322c56e..a32e5c3 100755 --- a/main/src/view/ivug-main-view-menu.cpp +++ b/main/src/view/ivug-main-view-menu.cpp @@ -1082,6 +1082,8 @@ static void _on_rename_view_response(ivug_name_response resp, const char *str, v if(_rename(mData, str) == false) { MSG_MAIN_ERROR("_rename to %s failed", str); + //ivug_notify_timeout_create(pMainView->layout, IDS_FAILED, 0.0, NULL, NULL); //it does not work + ivug_selectioninfo_create(pMainView->layout, IDS_FAILED); } else {