summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wx/export_dialog.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/export_dialog.cc b/src/wx/export_dialog.cc
index 5fc4036fe..ce6e1e2e9 100644
--- a/src/wx/export_dialog.cc
+++ b/src/wx/export_dialog.cc
@@ -156,5 +156,6 @@ void
ExportDialog::file_changed ()
{
wxButton* ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
- ok->Enable (_file->GetPath().Length() > 0);
+ DCPOMATIC_ASSERT (ok);
+ ok->Enable (path().is_absolute());
}