projects
/
apps
/
native
/
sample
/
ImageFeatureManager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e15d352
)
limiting the file name size to 32 charcaters
39/13439/1
author
howon kim
<howon.kim@samsung.com>
Thu, 5 Dec 2013 11:39:22 +0000
(20:39 +0900)
committer
howon kim
<howon.kim@samsung.com>
Thu, 5 Dec 2013 11:50:57 +0000
(20:50 +0900)
Change-Id: I4cd385202bb9713885e9d9ec925c5d1c508ebcdd
Signed-off-by: howon kim <howon.kim@samsung.com>
project/src/FileManagerForm.cpp
patch
|
blob
|
history
diff --git
a/project/src/FileManagerForm.cpp
b/project/src/FileManagerForm.cpp
index
d05e8de
..
6c73292
100644
(file)
--- 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;