Localize private variable (only used by RouteUI)

This commit is contained in:
Robin Gareus 2021-03-27 16:25:30 +01:00
parent 24499fa7da
commit 003be3d87e
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
4 changed files with 5 additions and 5 deletions

View file

@ -133,6 +133,7 @@ RouteUI::RouteUI (ARDOUR::Session* sess)
, comment_area(0)
, playlist_action_menu (0)
, _invert_menu(0)
, _ignore_comment_edit (false)
{
if (program_port_prefix.empty()) {
// compare to gtk2_ardour/port_group.cc
@ -1797,11 +1798,11 @@ RouteUI::setup_comment_editor ()
void
RouteUI::comment_changed ()
{
ignore_comment_edit = true;
_ignore_comment_edit = true;
if (comment_area) {
comment_area->get_buffer()->set_text (_route->comment());
}
ignore_comment_edit = false;
_ignore_comment_edit = false;
}
void