Don't enable the export OK button if we change format but have still not set an outpu...
[dcpomatic.git] / 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);
 }