swaroop: don't save history.
authorCarl Hetherington <cth@carlh.net>
Sun, 23 Dec 2018 00:07:35 +0000 (00:07 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 23 Dec 2018 00:07:35 +0000 (00:07 +0000)
src/tools/dcpomatic_player.cc

index b39e59d6ba302dc1caa80cdf88e3bc4361dcd2fe..f07b7c3aa2d559e9a74e6b2fdd75ced9ca1f9292 100644 (file)
@@ -383,7 +383,9 @@ public:
                        if (!ok || !report_errors_from_last_job(this)) {
                                return;
                        }
                        if (!ok || !report_errors_from_last_job(this)) {
                                return;
                        }
+#ifndef DCPOMATIC_VARIANT_SWAROOP
                        Config::instance()->add_to_player_history (dir);
                        Config::instance()->add_to_player_history (dir);
+#endif
                } catch (dcp::DCPReadError& e) {
                        error_dialog (this, wxString::Format(_("Could not load a DCP from %s"), std_to_wx(dir.string())), std_to_wx(e.what()));
                }
                } catch (dcp::DCPReadError& e) {
                        error_dialog (this, wxString::Format(_("Could not load a DCP from %s"), std_to_wx(dir.string())), std_to_wx(e.what()));
                }