+2018-04-12 Carl Hetherington <cth@carlh.net>
+
+ * Prevent error when starting export without specifying a filename (#1260).
+
2018-04-11 Carl Hetherington <cth@carlh.net>
* Fix 3D DCP handling in the player.
/*
- Copyright (C) 2017 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2017-2018 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
#include "export_dialog.h"
#include "file_picker_ctrl.h"
#include "wx_util.h"
+#include <wx/filepicker.h>
#include <boost/bind.hpp>
using boost::bind;
_format->SetSelection (0);
_format->Bind (wxEVT_CHOICE, bind (&ExportDialog::format_changed, this));
+ _file->Bind (wxEVT_FILEPICKER_CHANGED, bind (&ExportDialog::file_changed, this));
layout ();
+
+ wxButton* ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
+ ok->Enable (false);
}
void
{
return _mixdown->GetValue ();
}
+
+void
+ExportDialog::file_changed ()
+{
+ wxButton* ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
+ ok->Enable (true);
+}
/*
- Copyright (C) 2017 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2017-2018 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
private:
void format_changed ();
+ void file_changed ();
wxChoice* _format;
wxCheckBox* _mixdown;