Store the selected directory in wxGTK wxDirDialog.
This should help with the selected directory not being remembered since GTK+ 2.24.11 as apparently gtk_file_chooser_get_filename() doesn't work any more now after hiding the dialog -- so call it before doing this and save the result. Also get rid of the ugly and apparently completely unnecessary OnFakeOk(). Closes #14525. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -42,6 +42,11 @@ public: // overrides from wxGenericDirDialog
|
||||
void SetPath(const wxString& path);
|
||||
|
||||
|
||||
// Implementation only.
|
||||
|
||||
void GTKOnAccept();
|
||||
void GTKOnCancel();
|
||||
|
||||
protected:
|
||||
// override this from wxTLW since the native
|
||||
// form doesn't have any m_wxwindow
|
||||
@@ -51,10 +56,9 @@ protected:
|
||||
|
||||
|
||||
private:
|
||||
void OnFakeOk( wxCommandEvent &event );
|
||||
wxString m_selectedDirectory;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxDirDialog)
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
#endif // __GTKDIRDLGH__
|
||||
|
Reference in New Issue
Block a user