swaroop: set controls to 'stopped' when a playlist finishes.
[dcpomatic.git] / src / wx / content_sub_panel.cc
index 0bd79805b7f45d08a68aaeef7f84dbc2378d7f3d..bdb365158c7e743e51506792ca4d2e7b078d5f9f 100644 (file)
@@ -43,10 +43,9 @@ ContentSubPanel::ContentSubPanel (ContentPanel* p, wxString name)
        _grid = new wxGridBagSizer (DCPOMATIC_SIZER_X_GAP, DCPOMATIC_SIZER_Y_GAP);
        _sizer->Add (_grid, 0, wxALL, 8);
 
-       Config::instance()->Changed.connect (boost::bind (&ContentSubPanel::config_changed, this, _1));
+       _config_connection = Config::instance()->Changed.connect (boost::bind (&ContentSubPanel::config_changed, this, _1));
 }
 
-
 void
 ContentSubPanel::config_changed (Config::Property p)
 {
@@ -75,7 +74,7 @@ ContentSubPanel::setup_refer_button (wxCheckBox* button, wxStaticText* note, sha
        note->SetLabel (s);
        note->Wrap (400);
 
-       if (s.IsEmpty ()) {
+       if (s.IsEmpty() || Config::instance()->interface_complexity() == Config::INTERFACE_SIMPLE) {
                note->Hide ();
        } else {
                note->Show ();