]> git.saurik.com Git - wxWidgets.git/commitdiff
always use GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, independently of whether wxDD_MUST_...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 21 Jul 2007 01:26:42 +0000 (01:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 21 Jul 2007 01:26:42 +0000 (01:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dirdlg.cpp

index 16bd7a83fe774e5fd000e237fea070e6cefba66a..33821bda1a3858553ca752c9cba4491370b6ba04 100644 (file)
@@ -113,15 +113,10 @@ wxDirDialog::wxDirDialog(wxWindow* parent, const wxString& title,
         if (parent)
             gtk_parent = GTK_WINDOW( gtk_widget_get_toplevel(parent->m_widget) );
 
-        if (HasFlag(wxDD_DIR_MUST_EXIST))
-            gtk_action = GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER;
-        else
-            gtk_action = GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER;
-
         m_widget = gtk_file_chooser_dialog_new(
                        wxGTK_CONV(m_message),
                        gtk_parent,
-                       gtk_action,
+                       GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER,
                        GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
                        GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
                        NULL);