Don't allow creation of a new film with no name. Otherwise we try
[dcpomatic.git] / src / wx / film_name_location_dialog.h
index cfa29670154db5e4751a23697ce10231b7c74eaa..d50ed3b5204d98d7e53af3e3e47376121e35d671 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2020 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
-#include <wx/wx.h>
-#include <wx/filepicker.h>
 #include "wx_util.h"
 #include "table_dialog.h"
+#include "lib/warnings.h"
+DCPOMATIC_DISABLE_WARNINGS
+#include <wx/wx.h>
+#include <wx/filepicker.h>
+DCPOMATIC_ENABLE_WARNINGS
 
 class DirPickerCtrl;
 
@@ -37,6 +40,7 @@ public:
 
 private:
        void use_template_clicked ();
+       void setup_sensitivity ();
 
        wxTextCtrl* _name;
 #ifdef DCPOMATIC_USE_OWN_PICKER