Use ScopeGuard for _no_check_selection
[dcpomatic.git] / src / wx / film_name_location_dialog.cc
index 2f3fefe49aa0c2033fc2903e4e4c1092d2bef9fe..5c6f97f995d7b4c239dbb40ddface8d81d79aa75 100644 (file)
@@ -78,7 +78,7 @@ FilmNameLocationDialog::FilmNameLocationDialog (wxWindow* parent, wxString title
                        _template_name->Append (std_to_wx(i));
                }
 
-               _use_template->Bind (wxEVT_CHECKBOX, bind(&FilmNameLocationDialog::use_template_clicked, this));
+               _use_template->bind(&FilmNameLocationDialog::use_template_clicked, this);
        }
 
        layout ();