Fixed issue 47720
[apps/osp/Gallery.git] / src / GlAlbumNameEditorForm.cpp
index 3ce1d2f..0a2716d 100644 (file)
@@ -207,6 +207,15 @@ AlbumNameEditorForm::OnTextValueChanged(const Control& source)
                        CreateMessage(msg);
                        currentInput.Replace("/", "");
                        __pNameEditField->SetText(currentInput);
+
+                       if (currentInput == L"")
+                       {
+                               if (GetFooter() != null)
+                               {
+                                       GetFooter()->SetItemEnabled(0, false);
+                                       GetFooter()->Invalidate(true);
+                               }
+                       }
                }
 
                inputLength = byteCount;