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:34:06 +0000 (22:34 +0000)
src/wx/export_dialog.cc

index 9f6207e660e98429361691ed1a99840680c4c8ce..4661e54682dd2b6d25028c01e3923d0122bb8398 100644 (file)
@@ -101,5 +101,5 @@ void
 ExportDialog::file_changed ()
 {
        wxButton* ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
-       ok->Enable (true);
+       ok->Enable (_file->GetPath().Length() > 0);
 }