Fixup for comments editor blocking presses to its button
git-svn-id: svn://localhost/trunk/ardour2@462 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
2ce07f34e2
commit
f81f877adf
@ -1050,16 +1050,6 @@ MixerStrip::comment_button_clicked ()
|
||||
}
|
||||
|
||||
if (comment_window->is_visible()) {
|
||||
comment_window->hide ();
|
||||
return;
|
||||
}
|
||||
|
||||
comment_window->set_position (Gtk::WIN_POS_MOUSE);
|
||||
comment_window->show();
|
||||
comment_window->present();
|
||||
comment_window->run(); // we don't care what the response is
|
||||
comment_window->hide();
|
||||
|
||||
string str = comment_area->get_buffer()->get_text();
|
||||
if (_route.comment() != str) {
|
||||
_route.set_comment (str, this);
|
||||
@ -1086,6 +1076,14 @@ MixerStrip::comment_button_clicked ()
|
||||
ARDOUR_UI::instance()->tooltips().set_tip (comment_button,
|
||||
str.empty() ? _("Click to Add/Edit Comments") : str);
|
||||
}
|
||||
comment_window->hide ();
|
||||
return;
|
||||
}
|
||||
|
||||
comment_window->set_position (Gtk::WIN_POS_MOUSE);
|
||||
comment_window->show();
|
||||
comment_window->present();
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user