mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Disable canvas verbose cursor for notes, which locks up on note adding sometimes.
The backtrace ain't pretty :/ git-svn-id: svn://localhost/ardour2/branches/3.0@5871 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
382a79eda5
commit
b61e7ad5de
1 changed files with 5 additions and 3 deletions
|
|
@ -584,7 +584,8 @@ MidiRegionView::display_model(boost::shared_ptr<MidiModel> model)
|
||||||
{
|
{
|
||||||
_model = model;
|
_model = model;
|
||||||
content_connection.disconnect ();
|
content_connection.disconnect ();
|
||||||
content_connection = _model->ContentsChanged.connect(sigc::mem_fun(this, &MidiRegionView::redisplay_model));
|
content_connection = _model->ContentsChanged.connect(
|
||||||
|
sigc::mem_fun(this, &MidiRegionView::redisplay_model));
|
||||||
clear_events ();
|
clear_events ();
|
||||||
|
|
||||||
if (_enable_display) {
|
if (_enable_display) {
|
||||||
|
|
@ -2264,11 +2265,12 @@ MidiRegionView::note_entered(ArdourCanvas::CanvasNoteEvent* ev)
|
||||||
note_selected(ev, true);
|
note_selected(ev, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
PublicEditor& editor (trackview.editor());
|
|
||||||
char buf[4];
|
char buf[4];
|
||||||
snprintf (buf, sizeof (buf), "%d", (int) ev->note()->note());
|
snprintf (buf, sizeof (buf), "%d", (int) ev->note()->note());
|
||||||
|
// This causes an infinite loop on note add sometimes
|
||||||
|
//PublicEditor& editor (trackview.editor());
|
||||||
//editor.show_verbose_canvas_cursor_with (Evoral::midi_note_name (ev->note()->note()));
|
//editor.show_verbose_canvas_cursor_with (Evoral::midi_note_name (ev->note()->note()));
|
||||||
editor.show_verbose_canvas_cursor_with (buf);
|
//editor.show_verbose_canvas_cursor_with (buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue