KDM path fixes.
authorCarl Hetherington <cth@carlh.net>
Tue, 24 Sep 2013 20:12:51 +0000 (21:12 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 24 Sep 2013 20:12:51 +0000 (21:12 +0100)
src/lib/film.cc
src/wx/kdm_dialog.cc

index 7088761511c0bc6262d4b0508b4de04202fc5ab7..07af46d97c99a36782e51824cce20f6bfde46f7d 100644 (file)
@@ -961,8 +961,7 @@ Film::make_kdms (
                        );
 
                boost::filesystem::path out = directory;
-               out /= tidy_for_filename ((*i)->cinema->name) + "_" + tidy_for_filename ((*i)->name);
-               out /= "kdm.xml";
+               out /= tidy_for_filename ((*i)->cinema->name) + "_" + tidy_for_filename ((*i)->name) + ".kdm.xml";
                kdm->write_to_file_formatted (out.string());
        }
 }
index c8212636a210d73a45e2f731b997416efffd8c29..f2fc537119850e2b9de8f282c836f72d50ff22d8 100644 (file)
@@ -20,6 +20,7 @@
 #include <wx/treectrl.h>
 #include <wx/datectrl.h>
 #include <wx/timectrl.h>
+#include <wx/stdpaths.h>
 #include "lib/cinema.h"
 #include "lib/config.h"
 #include "kdm_dialog.h"
@@ -98,6 +99,8 @@ KDMDialog::KDMDialog (wxWindow* parent)
        _folder = new wxDirPickerCtrl (this, wxID_ANY);
 #endif
 
+       _folder->SetPath (wxStandardPaths::Get().GetDocumentsDir());
+       
        table->Add (_folder, 1, wxEXPAND);
        
        vertical->Add (table, 0, wxEXPAND | wxALL, 6);