diff options
author | Taybin Rutkin <taybin@taybin.com> | 2006-01-13 22:46:04 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2006-01-13 22:46:04 +0000 |
commit | 9747fa891093251d1c828cd9acadebc4a432d6cf (patch) | |
tree | 36d348cd9fe8d37858fa008c5b59a8a6cfb94f72 /gtk2_ardour/audio_time_axis.cc | |
parent | 6817b59169b2c334245f8018d7e3f2235e195aa0 (diff) |
All useage of ArdourPrompter checks for a valid result.
Gtkmm2ext::Prompter set as WINDOW_TYPE_HINT_DIALOG.
Adding fields to the sfdb works.
git-svn-id: svn://localhost/trunk/ardour2@271 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_time_axis.cc')
-rw-r--r-- | gtk2_ardour/audio_time_axis.cc | 20 |
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: |