]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/wince/filedlgwce.cpp
Added missing include
[wxWidgets.git] / src / msw / wince / filedlgwce.cpp
index e0b6acb5d51bbd4dbd8751786d4f0ddfa98dce09..6d0cfe94cfd48ff2f343bee66ef83c59bda11dad 100644 (file)
@@ -114,16 +114,12 @@ int wxFileDialog::ShowModal()
         parentWindow = wxTheApp->GetTopWindow();
 
     wxString str = wxGetTextFromUser(m_message, _("File"), m_fileName, parentWindow);
-    if (str)
-    {
-        m_fileName = str;
-        m_fileNames.Add(str);
-        return wxID_OK;
-    }
-    else
-    {
+    if (str.empty())
         return wxID_CANCEL;
-    }
+
+    m_fileName = str;
+    m_fileNames.Add(str);
+    return wxID_OK;
 }
 
 void wxFileDialog::GetFilenames(wxArrayString& files) const