Fix occasional crash on startup with MIDI tracks (race?).
authorDavid Robillard <d@drobilla.net>
Thu, 22 Oct 2009 16:10:21 +0000 (16:10 +0000)
committerDavid Robillard <d@drobilla.net>
Thu, 22 Oct 2009 16:10:21 +0000 (16:10 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@5855 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/midi_time_axis.cc

index 6aaf33854c7a48d19b9a1dfbb5162a084dd76cca..544fee86a4ab36ed54d34ac7321bedd35bcbdd7a 100644 (file)
@@ -204,7 +204,7 @@ MidiTimeAxisView::MidiTimeAxisView (PublicEditor& ed, Session& sess,
 
        if ((prop = xml_node->property ("note-mode")) != 0) {
                _note_mode = NoteMode (string_2_enum(prop->value(), _note_mode));
-               if (mode_menu) {
+               if (_percussion_mode_item) {
                        _percussion_mode_item->set_active (_note_mode == Percussive);
                }
        }