summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-01-29 22:20:34 +0000
committerCarl Hetherington <cth@carlh.net>2019-01-29 22:34:06 +0000
commit5ffa9dfdd46038021acbd979eca1c0326ab86ab2 (patch)
treed9777a87cef88a2d1d4b00a759e09612229f0328
parentb32d2c0249ac3dfda015de7f3e32de0d3f794f93 (diff)
Don't enable the export OK button if we change format but have still not set an output file.
-rw-r--r--src/wx/export_dialog.cc2
1 files changed, 1 insertions, 1 deletions
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<wxButton *> (FindWindowById (wxID_OK, this));
- ok->Enable (true);
+ ok->Enable (_file->GetPath().Length() > 0);
}