From: Carl Hetherington Date: Tue, 7 Jan 2014 21:31:54 +0000 (+0000) Subject: Respect check_for_test_updates option. X-Git-Tag: v2.0.48~964 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=470e2f06b4ac98f3d92bc7ed0e28a79532bac903;p=dcpomatic.git Respect check_for_test_updates option. --- diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 4e23cf09d..111b5769d 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -714,7 +714,11 @@ class App : public wxApp switch (UpdateChecker::instance()->state ()) { case UpdateChecker::YES: { - UpdateDialog* dialog = new UpdateDialog (_frame, UpdateChecker::instance()->stable (), UpdateChecker::instance()->test ()); + string test; + if (Config::instance()->check_for_test_updates ()) { + test = UpdateChecker::instance()->test (); + } + UpdateDialog* dialog = new UpdateDialog (_frame, UpdateChecker::instance()->stable (), test); dialog->ShowModal (); dialog->Destroy (); break;