Fix uninitialised variable.
git-svn-id: svn://localhost/ardour2/branches/3.0@5488 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ce3ca76f96
commit
9bada9c946
@ -301,6 +301,9 @@ Editor::set_mouse_mode (MouseMode m, bool force)
|
|||||||
|
|
||||||
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
|
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
|
||||||
assert (tact);
|
assert (tact);
|
||||||
|
|
||||||
|
/* go there and back to ensure that the toggled handler is called to set up mouse_mode */
|
||||||
|
tact->set_active (false);
|
||||||
tact->set_active (true);
|
tact->set_active (true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user