From 5ffa9dfdd46038021acbd979eca1c0326ab86ab2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 29 Jan 2019 22:20:34 +0000 Subject: Don't enable the export OK button if we change format but have still not set an output file. --- src/wx/export_dialog.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/export_dialog.cc b/src/wx/export_dialog.cc index 9f6207e66..4661e5468 100644 --- a/src/wx/export_dialog.cc +++ b/src/wx/export_dialog.cc @@ -101,5 +101,5 @@ void ExportDialog::file_changed () { wxButton* ok = dynamic_cast (FindWindowById (wxID_OK, this)); - ok->Enable (true); + ok->Enable (_file->GetPath().Length() > 0); } -- cgit v1.2.3