summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Loftis <ben@glw.com>2010-01-12 22:30:55 +0000
committerBen Loftis <ben@glw.com>2010-01-12 22:30:55 +0000
commitd4f376779d621cb4024b2872f38e2cb5710cf8fa (patch)
tree0c2ef68cb63d350632da6ee3b3042a137696d2cb
parente78cd3add82ba405a23f86f90ab4af80def5f186 (diff)
fix export file path initialization
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6479 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--gtk2_ardour/export_dialog.cc9
1 files changed, 9 insertions, 0 deletions
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 {