projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ee5d40
)
Handle cancel properly on dir picker.
author
Carl Hetherington
<cth@carlh.net>
Wed, 24 Jul 2013 21:25:43 +0000
(22:25 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 24 Jul 2013 21:25:43 +0000
(22:25 +0100)
src/wx/dir_picker_ctrl.cc
patch
|
blob
|
history
diff --git
a/src/wx/dir_picker_ctrl.cc
b/src/wx/dir_picker_ctrl.cc
index ec7854764e048c435819e129467c33a051f0a28f..962dd50ece04b58c72df5d233ec08efdca90da95 100644
(file)
--- 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 ();
}