Don't enable the export OK button if we change format but have still not set an outpu...
authorCarl Hetherington <cth@carlh.net>
Tue, 29 Jan 2019 22:20:34 +0000 (22:20 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 29 Jan 2019 22:20:34 +0000 (22:20 +0000)
src/wx/export_dialog.cc

index 68d3706ff7f4b48725535da50951555964348551..cb9127a57585422b7948cbc7e2c5930fae92ac87 100644 (file)
@@ -143,5 +143,5 @@ void
 ExportDialog::file_changed ()
 {
        wxButton* ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
-       ok->Enable (true);
+       ok->Enable (_file->GetPath().Length() > 0);
 }