]> git.sesse.net Git - nageru/commitdiff
Don't try to set up MIDI mapper highlights before the UI exists.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 22 Oct 2016 12:46:13 +0000 (14:46 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 25 Oct 2016 16:48:36 +0000 (18:48 +0200)
mainwindow.cpp
midi_mapper.cpp

index 65a612529b540e6fe111b27fca943934f6a155be..0eda02d3a5c82bcdc8d8763971ccf225faa393aa 100644 (file)
@@ -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();
 }
 
index 4f0fb48c2da350ad75a5096bea49d003043ba23a..10337a0b928e499208c93203b0762d603047f2c3 100644 (file)
@@ -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()