always use GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, independently of whether wxDD_MUST_EXIT flag is used, as the create folder dialog has confusing UI
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f032212850
commit
38a14fe926
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user