mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
Use weak-pointer for Controllable learning
This commit is contained in:
parent
1dedadd03f
commit
16fe286ed9
3 changed files with 6 additions and 6 deletions
|
|
@ -91,7 +91,7 @@ bool
|
|||
BindingProxy::button_press_handler (GdkEventButton *ev)
|
||||
{
|
||||
if ( controllable && is_bind_action(ev) ) {
|
||||
if (Controllable::StartLearning (controllable.get())) {
|
||||
if (Controllable::StartLearning (controllable)) {
|
||||
string prompt = _("operate controller now");
|
||||
if (prompter == 0) {
|
||||
prompter = new PopUp (Gtk::WIN_POS_MOUSE, 30000, false);
|
||||
|
|
@ -121,7 +121,7 @@ BindingProxy::prompter_hiding (GdkEventAny* /*ev*/)
|
|||
{
|
||||
learning_connection.disconnect ();
|
||||
if (controllable) {
|
||||
Controllable::StopLearning (controllable.get());
|
||||
Controllable::StopLearning (controllable);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue