]> git.saurik.com Git - wxWidgets.git/commitdiff
file dialog with wxMULTIPLE style still doesn't allow to select multiple files but...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 24 Mar 2005 02:49:20 +0000 (02:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 24 Mar 2005 02:49:20 +0000 (02:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/filedlg.cpp
src/gtk1/filedlg.cpp

index 3c909e79bfc7e4360174862106198191955baad6..1240658ca2cdab2ede48d2971d7484f1a338cc98 100644 (file)
@@ -299,7 +299,8 @@ void wxFileDialog::GetPaths(wxArrayString& paths) const
             if (gpaths)
                 g_slist_free(gpaths);
         }
-        else
+
+        if ( paths.IsEmpty() )
         {
             paths.Add(m_fileName);
         }
index 3c909e79bfc7e4360174862106198191955baad6..1240658ca2cdab2ede48d2971d7484f1a338cc98 100644 (file)
@@ -299,7 +299,8 @@ void wxFileDialog::GetPaths(wxArrayString& paths) const
             if (gpaths)
                 g_slist_free(gpaths);
         }
-        else
+
+        if ( paths.IsEmpty() )
         {
             paths.Add(m_fileName);
         }