From 12b57d96fd343f0574f592d418a1572dd41d1a59 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 21 Jul 2020 22:59:08 +0200 Subject: 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. --- src/wx/export_dialog.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); } -- cgit v1.2.3