limiting the file name size to 32 charcaters 39/13439/1
authorhowon kim <howon.kim@samsung.com>
Thu, 5 Dec 2013 11:39:22 +0000 (20:39 +0900)
committerhowon 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

index d05e8de..6c73292 100644 (file)
@@ -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;