Localize private variable (only used by RouteUI)
This commit is contained in:
parent
24499fa7da
commit
003be3d87e
@ -370,7 +370,6 @@ FoldbackStrip::FoldbackStrip (Mixer_UI& mx, Session* sess, boost::shared_ptr<Rou
|
||||
void
|
||||
FoldbackStrip::init ()
|
||||
{
|
||||
ignore_comment_edit = false;
|
||||
comment_area = 0;
|
||||
|
||||
_previous_button.set_name ("mixer strip button");
|
||||
|
@ -179,7 +179,6 @@ MixerStrip::init ()
|
||||
_entered_mixer_strip= 0;
|
||||
group_menu = 0;
|
||||
route_ops_menu = 0;
|
||||
ignore_comment_edit = false;
|
||||
comment_area = 0;
|
||||
_width_owner = 0;
|
||||
|
||||
|
@ -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
|
||||
|
@ -266,7 +266,6 @@ public:
|
||||
gint comment_key_release_handler (GdkEventKey*);
|
||||
void comment_changed ();
|
||||
void comment_edited ();
|
||||
bool ignore_comment_edit;
|
||||
|
||||
void set_disk_io_point (ARDOUR::DiskIOPoint);
|
||||
|
||||
@ -358,6 +357,8 @@ private:
|
||||
Gtk::Menu* _invert_menu;
|
||||
uint32_t _n_polarity_invert;
|
||||
|
||||
bool _ignore_comment_edit;
|
||||
|
||||
StripableColorDialog _color_picker;
|
||||
|
||||
static boost::weak_ptr<ARDOUR::Route> _showing_sends_to;
|
||||
|
Loading…
Reference in New Issue
Block a user