Cleanup: rename some methods in FilePickerCtrl and use boost::filesystem::path more.
[dcpomatic.git] / src / wx / full_config_dialog.cc
index 175d787309ed8c8e3dc88a3a0343cc029a17b9e7..f7945a44a4404f1076e2f9f3334d0068ebe2e238 100644 (file)
@@ -216,7 +216,7 @@ private:
        void config_file_changed ()
        {
                auto config = Config::instance();
-               boost::filesystem::path new_file = wx_to_std(_config_file->GetPath());
+               auto const new_file = _config_file->path();
                if (new_file == config->config_read_file()) {
                        return;
                }
@@ -240,7 +240,7 @@ private:
 
        void cinemas_file_changed ()
        {
-               Config::instance()->set_cinemas_file (wx_to_std (_cinemas_file->GetPath ()));
+               Config::instance()->set_cinemas_file(_cinemas_file->path());
        }
 
        void default_add_file_location_changed()
@@ -1562,7 +1562,7 @@ private:
                _allow_96khz_audio->bind(&NonStandardPage::allow_96khz_audio_changed, this);
                _use_all_audio_channels->bind(&NonStandardPage::use_all_channels_changed, this);
                _allow_smpte_bv20->bind(&NonStandardPage::allow_smpte_bv20_changed, this);
-               _isdcf_name_part_length->SetRange(14, 256);
+               _isdcf_name_part_length->SetRange(1, 256);
                _isdcf_name_part_length->Bind(wxEVT_SPINCTRL, boost::bind(&NonStandardPage::isdcf_name_part_length_changed, this));
        }