From d4f376779d621cb4024b2872f38e2cb5710cf8fa Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Tue, 12 Jan 2010 22:30:55 +0000 Subject: [PATCH] fix export file path initialization git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6479 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/export_dialog.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gtk2_ardour/export_dialog.cc b/gtk2_ardour/export_dialog.cc index eba1fdbd14..861a1d3270 100644 --- a/gtk2_ardour/export_dialog.cc +++ b/gtk2_ardour/export_dialog.cc @@ -488,6 +488,15 @@ ExportDialog::set_state() channels_chosen(); sample_rate_chosen(); + //header_chosen initializes the file_entry text. we need to clear it so it will be set to the default, and/or recover the val that was stored in instant.xml + file_entry.set_text(""); + if (node) { + if ((prop = node->property (X_("filename"))) != 0) { + file_entry.set_text(prop->value()); + } + } + + if (session->master_out()) { track_scroll.hide (); } else {