diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/dir_picker_ctrl.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wx/dir_picker_ctrl.cc b/src/wx/dir_picker_ctrl.cc index ec7854764..962dd50ec 100644 --- a/src/wx/dir_picker_ctrl.cc +++ b/src/wx/dir_picker_ctrl.cc @@ -68,7 +68,8 @@ void DirPickerCtrl::browse_clicked (wxCommandEvent &) { wxDirDialog* d = new wxDirDialog (this); - d->ShowModal (); - SetPath (d->GetPath ()); + if (d->ShowModal () == wxID_OK) { + SetPath (d->GetPath ()); + } d->Destroy (); } |
