From: Carl Hetherington Date: Tue, 21 Jul 2020 20:59:08 +0000 (+0200) Subject: Don't enable OK button for the export dialogue until a path X-Git-Tag: v2.15.91~13 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=12b57d96fd343f0574f592d418a1572dd41d1a59;p=dcpomatic.git Don't enable OK button for the export dialogue until a path has been selected. If OK is clicked too early you get a -13 error on Windows. --- diff --git a/src/wx/export_dialog.cc b/src/wx/export_dialog.cc index 5fc4036fe..ce6e1e2e9 100644 --- a/src/wx/export_dialog.cc +++ b/src/wx/export_dialog.cc @@ -156,5 +156,6 @@ void ExportDialog::file_changed () { wxButton* ok = dynamic_cast (FindWindowById (wxID_OK, this)); - ok->Enable (_file->GetPath().Length() > 0); + DCPOMATIC_ASSERT (ok); + ok->Enable (path().is_absolute()); }