diff options
author | Carl Hetherington <carl@carlh.net> | 2010-11-21 23:54:57 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-11-21 23:54:57 +0000 |
commit | 03d28648208bbb1be9108593e9327b6375ecb5ef (patch) | |
tree | 5ce596371bca8da86fe9b35c670add23a06bad1b /gtk2_ardour/editor_mouse.cc | |
parent | 8631c4443945140f207cf1194c85c47bb0cc2571 (diff) |
Update ghost note presence when mouse mode is changed. Fixes #3559.
git-svn-id: svn://localhost/ardour2/branches/3.0@8066 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r-- | gtk2_ardour/editor_mouse.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 6b1703ed1b..409cf2fd5a 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -360,6 +360,8 @@ Editor::set_mouse_mode (MouseMode m, bool force) /* 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); + + MouseModeChanged (); /* EMIT SIGNAL */ } void @@ -396,6 +398,8 @@ Editor::mouse_mode_toggled (MouseMode m) } set_canvas_cursor (); + + MouseModeChanged (); /* EMIT SIGNAL */ } void @@ -2622,7 +2626,7 @@ Editor::set_internal_edit (bool yn) mouse_select_button.set_image (*(manage (new Image (::get_icon("midi_tool_pencil"))))); mouse_select_button.get_image ()->show (); ARDOUR_UI::instance()->set_tip (mouse_select_button, _("Draw/Edit MIDI Notes")); - set_canvas_cursor (); + mouse_mode_toggled (mouse_mode); /* deselect everything to avoid confusion when e.g. we can't now cut a previously selected region because cut means "cut note" rather than "cut region". |