From: Steinar H. Gunderson Date: Sat, 22 Oct 2016 12:46:13 +0000 (+0200) Subject: Don't try to set up MIDI mapper highlights before the UI exists. X-Git-Tag: 1.4.0~12 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=5d98f9d0c02273509a56ae1ba33d63b272023535 Don't try to set up MIDI mapper highlights before the UI exists. --- diff --git a/mainwindow.cpp b/mainwindow.cpp index 65a6125..0eda02d 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -249,6 +249,8 @@ MainWindow::MainWindow() } midi_mapper.set_midi_mapping(midi_mapping); } + midi_mapper.refresh_highlights(); + midi_mapper.refresh_lights(); midi_mapper.start_thread(); } diff --git a/midi_mapper.cpp b/midi_mapper.cpp index 4f0fb48..10337a0 100644 --- a/midi_mapper.cpp +++ b/midi_mapper.cpp @@ -45,7 +45,6 @@ MIDIMapper::MIDIMapper(ControllerReceiver *receiver) { should_quit_fd = eventfd(/*initval=*/0, /*flags=*/0); assert(should_quit_fd != -1); - refresh_highlights(); } MIDIMapper::~MIDIMapper()