summaryrefslogtreecommitdiff
path: root/src/wx/swaroop_controls.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/swaroop_controls.cc')
-rw-r--r--src/wx/swaroop_controls.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wx/swaroop_controls.cc b/src/wx/swaroop_controls.cc
index 62d9d0300..f93cc66f1 100644
--- a/src/wx/swaroop_controls.cc
+++ b/src/wx/swaroop_controls.cc
@@ -262,6 +262,15 @@ SwaroopControls::log (wxString s)
strftime (buffer, 64, "%c", t);
wxString ts = std_to_wx(string(buffer)) + N_(": ");
_log->SetValue(_log->GetValue() + ts + s + "\n");
+
+ optional<boost::filesystem::path> log = Config::instance()->player_log_file();
+ if (!log) {
+ return;
+ }
+
+ FILE* f = fopen_boost (*log, "a");
+ fprintf (f, "%s%s\n", wx_to_std(ts).c_str(), wx_to_std(s).c_str());
+ fclose (f);
}
void
@@ -385,6 +394,8 @@ SwaroopControls::spl_selection_changed ()
return;
}
+ log (wxString::Format("load-playlist %s", std_to_wx(_playlists[selected].name()).data()));
+
wxProgressDialog dialog (_("DCP-o-matic"), "Loading playlist and KDMs");
BOOST_FOREACH (SPLEntry const & i, _playlists[selected].get()) {