summaryrefslogtreecommitdiff
path: root/src/wx/file_picker_ctrl.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-02-17 19:25:33 +0000
committerCarl Hetherington <cth@carlh.net>2016-02-17 19:25:33 +0000
commit4228cb5b5323e9dc4bc87182b27427e48bb59d91 (patch)
tree42b0222c333c7bb27f7ae68196837d9dbfa6b65a /src/wx/file_picker_ctrl.cc
parent4f19455332f1f4cc4c313338b7fb0b6fc508d5b4 (diff)
Use a separate file (in a configurable location) to store cinema / screen certificates (#796).
Diffstat (limited to 'src/wx/file_picker_ctrl.cc')
-rw-r--r--src/wx/file_picker_ctrl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/file_picker_ctrl.cc b/src/wx/file_picker_ctrl.cc
index 8de1596a9..9b52fc1cf 100644
--- a/src/wx/file_picker_ctrl.cc
+++ b/src/wx/file_picker_ctrl.cc
@@ -39,7 +39,7 @@ FilePickerCtrl::FilePickerCtrl (wxWindow* parent, wxString prompt, wxString wild
size.SetHeight (-1);
_file = new wxButton (this, wxID_ANY, _("(None)"), wxDefaultPosition, size, wxBU_LEFT);
- _sizer->Add (_file, 1, wxEXPAND | wxALL, 6);
+ _sizer->Add (_file, 1, wxEXPAND, 0);
SetSizerAndFit (_sizer);
@@ -71,6 +71,7 @@ void
FilePickerCtrl::browse_clicked ()
{
wxFileDialog* d = new wxFileDialog (this, _prompt, wxEmptyString, wxEmptyString, _wildcard);
+ d->SetPath (_path);
if (d->ShowModal () == wxID_OK) {
SetPath (d->GetPath ());
}