diff options
author | howon kim <howon.kim@samsung.com> | 2013-12-05 20:47:41 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.vlan103.tizen.org> | 2013-12-05 20:47:41 -0800 |
commit | 1cbefd7de450f1231a41150678c749e3713f37a8 (patch) | |
tree | 5056c1014336b10f9f6548cb76de771cc263bcd1 | |
parent | 6c09e47b2baff9cae56207340b577ce9bdc5005c (diff) | |
parent | ba24205091c613582f9eec673f5aac947cd4820a (diff) | |
download | ImageFeatureManager-tizen.tar.gz ImageFeatureManager-tizen.tar.bz2 ImageFeatureManager-tizen.zip |
Merge "limiting the file name size to 32 charcaters" into tizentizen
-rw-r--r-- | project/src/FileManagerForm.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/project/src/FileManagerForm.cpp b/project/src/FileManagerForm.cpp index d05e8de..6c73292 100644 --- a/project/src/FileManagerForm.cpp +++ b/project/src/FileManagerForm.cpp @@ -130,6 +130,17 @@ FileManagerForm::OnActionPerformed (const Tizen::Ui::Control &source, int action { fileName.Append(".xdb"); } + + if(fileName.GetLength() > 32) + { + MessageBox msgBox; + int modalResult; + + msgBox.Construct(L"Warning", L"File name too long.\nPlease rename (max 32 characters supported).", MSGBOX_STYLE_OK); + msgBox.ShowAndWait(modalResult); + return; + } + *pFolder = __currentPath + "/" + fileName; Tizen::Text::Utf8Encoding utf8; |