Respect check_for_test_updates option.
authorCarl Hetherington <cth@carlh.net>
Tue, 7 Jan 2014 21:31:54 +0000 (21:31 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 7 Jan 2014 21:31:54 +0000 (21:31 +0000)
src/tools/dcpomatic.cc

index 4e23cf09d7a034bfbc4a6d5ab9e2017ede019390..111b5769d313baa3a226eb8684e2bdbbf395f426 100644 (file)
@@ -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;