summaryrefslogtreecommitdiff
path: root/gtk2_ardour/audio_time_axis.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/audio_time_axis.cc')
-rw-r--r--gtk2_ardour/audio_time_axis.cc20
1 files changed, 13 insertions, 7 deletions
diff --git a/gtk2_ardour/audio_time_axis.cc b/gtk2_ardour/audio_time_axis.cc
index 2adc56e43f..013635f954 100644
--- a/gtk2_ardour/audio_time_axis.cc
+++ b/gtk2_ardour/audio_time_axis.cc
@@ -837,7 +837,9 @@ AudioTimeAxisView::rename_current_playlist ()
switch (prompter.run ()) {
case Gtk::RESPONSE_ACCEPT:
prompter.get_result (name);
- pl->set_name (name);
+ if (name.length()) {
+ pl->set_name (name);
+ }
break;
default:
@@ -876,9 +878,11 @@ AudioTimeAxisView::use_copy_playlist ()
switch (prompter.run ()) {
case Gtk::RESPONSE_ACCEPT:
prompter.get_result (name);
- ds->use_copy_playlist ();
- pl = ds->playlist();
- pl->set_name (name);
+ if (name.length()) {
+ ds->use_copy_playlist ();
+ pl = ds->playlist();
+ pl->set_name (name);
+ }
break;
default:
@@ -906,9 +910,11 @@ AudioTimeAxisView::use_new_playlist ()
switch (prompter.run ()) {
case Gtk::RESPONSE_ACCEPT:
prompter.get_result (name);
- ds->use_new_playlist ();
- pl = ds->playlist();
- pl->set_name (name);
+ if (name.length()) {
+ ds->use_new_playlist ();
+ pl = ds->playlist();
+ pl->set_name (name);
+ }
break;
default: