diff options
author | Robin Gareus <robin@gareus.org> | 2019-03-23 01:45:29 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-03-23 01:50:45 +0100 |
commit | 16fe286ed97e89a6768e0eb1e983ab55cc396eaf (patch) | |
tree | e47684d9227235c921da4a5fc7e15acca0214a78 /libs/widgets | |
parent | 1dedadd03f83663ecda2ec0a49c16dbec8d6bd18 (diff) |
Use weak-pointer for Controllable learning
Diffstat (limited to 'libs/widgets')
-rw-r--r-- | libs/widgets/binding_proxy.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/widgets/binding_proxy.cc b/libs/widgets/binding_proxy.cc index 85119ab1c0..98f4443ad2 100644 --- a/libs/widgets/binding_proxy.cc +++ b/libs/widgets/binding_proxy.cc @@ -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; } |