diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-07-26 00:57:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-07-26 00:57:03 +0100 |
| commit | 560c9dac3451e6c7624fea7b20698104ad8248ed (patch) | |
| tree | 0f55dad032448d22a9dc30da3b7f258ab4a222cf /src | |
| parent | 2f3e95c42bdb655afc990983e737f1c6f594af33 (diff) | |
Sort-of open directory dialogs in My Documents.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dvdomatic.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/dvdomatic.cc b/src/tools/dvdomatic.cc index e5b850619..938a5d2a4 100644 --- a/src/tools/dvdomatic.cc +++ b/src/tools/dvdomatic.cc @@ -20,6 +20,7 @@ #include <iostream> #include <boost/filesystem.hpp> #include <wx/aboutdlg.h> +#include <wx/stdpaths.h> #include "wx/film_viewer.h" #include "wx/film_editor.h" #ifndef DVDOMATIC_DISABLE_PLAYER @@ -250,7 +251,7 @@ public: void file_new (wxCommandEvent &) { - wxDirDialog* c = new wxDirDialog (this, wxT ("New Film")); + wxDirDialog* c = new wxDirDialog (this, wxT ("New Film"), wxStandardPaths::Get().GetDocumentsDir()); int const r = c->ShowModal (); c->Destroy (); @@ -270,7 +271,7 @@ public: void file_open (wxCommandEvent &) { - wxDirDialog* c = new wxDirDialog (this, wxT ("Open Film"), wxT (""), wxDD_DIR_MUST_EXIST); + wxDirDialog* c = new wxDirDialog (this, wxT ("Open Film"), wxStandardPaths::Get().GetDocumentsDir(), wxDD_DIR_MUST_EXIST); int const r = c->ShowModal (); c->Destroy (); |
