diff --git a/include/wx/dirdlg.h b/include/wx/dirdlg.h index 7a849a713a..4698416fff 100644 --- a/include/wx/dirdlg.h +++ b/include/wx/dirdlg.h @@ -47,7 +47,9 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& sz = wxDefaultSize, const wxString& name = wxDirDialogNameStr) - : wxDialog(parent, wxID_ANY, title, pos, sz, style, name) {} + : wxDialog(parent, wxID_ANY, title, pos, sz, style, name) + , m_path(defaultPath) + {} wxDirDialogBase() {} virtual ~wxDirDialogBase() {} diff --git a/src/generic/dirdlgg.cpp b/src/generic/dirdlgg.cpp index e52fea9d91..2c50f0ec39 100644 --- a/src/generic/dirdlgg.cpp +++ b/src/generic/dirdlgg.cpp @@ -84,10 +84,12 @@ wxGenericDirDialog::wxGenericDirDialog(wxWindow* parent, const wxString& title, Create(parent, title, defaultPath, style, pos, sz, name); } -bool wxGenericDirDialog::Create(wxWindow* parent, const wxString& title, - const wxString& defaultPath, long style, - const wxPoint& pos, const wxSize& sz, - const wxString& name) +bool wxGenericDirDialog::Create(wxWindow* WXUNUSED(parent), + const wxString& WXUNUSED(title), + const wxString& defaultPath, long style, + const wxPoint& WXUNUSED(pos), + const wxSize& WXUNUSED(sz), + const wxString& WXUNUSED(name)) { wxBusyCursor cursor;