fix display of time selection rect(s) when switching mouse modes
This commit is contained in:
parent
c04285addf
commit
5cbb60d339
|
@ -1646,6 +1646,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
|||
Selection* cut_buffer;
|
||||
|
||||
void time_selection_changed ();
|
||||
void update_time_selection_display ();
|
||||
void track_selection_changed ();
|
||||
void region_selection_changed ();
|
||||
sigc::connection editor_regions_selection_changed_connection;
|
||||
|
|
|
@ -499,10 +499,32 @@ Editor::mouse_mode_toggled (MouseMode m)
|
|||
|
||||
set_canvas_cursor ();
|
||||
set_gain_envelope_visibility ();
|
||||
|
||||
update_time_selection_display ();
|
||||
|
||||
MouseModeChanged (); /* EMIT SIGNAL */
|
||||
}
|
||||
|
||||
void
|
||||
Editor::update_time_selection_display ()
|
||||
{
|
||||
if (smart_mode_action->get_active()) {
|
||||
/* not sure what to do here */
|
||||
if (mouse_mode == MouseObject) {
|
||||
} else {
|
||||
}
|
||||
} else {
|
||||
switch (mouse_mode) {
|
||||
case MouseRange:
|
||||
selection->clear_objects ();
|
||||
break;
|
||||
default:
|
||||
selection->clear_time ();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Editor::step_mouse_mode (bool next)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue