diff options
author | Robin Gareus <robin@gareus.org> | 2020-03-02 17:47:26 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-03-02 17:58:03 +0100 |
commit | 7f11270c96c1fd7e32f235ce207608455ebb3a23 (patch) | |
tree | 3ff0f7c513e287df5f55a0291fbcd3cb11326b2a | |
parent | 7a0ed32b38a8d20fa479ee7c72c44472ff5951f1 (diff) |
Fix UI insert/send renaming
This fixes an issue when trying to rename a send or insert
to the current name (no-rename).
::rename_processor() checks if io_name_is_legal(),
Since the current name is already in use, a numeric-suffix
was added.
-rw-r--r-- | gtk2_ardour/processor_box.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index a923533cba..d76b416e38 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -3337,7 +3337,7 @@ ProcessorBox::rename_processor (boost::shared_ptr<Processor> processor) case Gtk::RESPONSE_ACCEPT: name_prompter.get_result (result); - if (result.length()) { + if (result.length() && result != processor->name ()) { int tries = 0; string test = result; |