This patch fixes a crash on startup.
A pMidiMapping object is not being instantiated when MIDI_SCRIPT is
undefined, yet signals and slots are trying to be connected to it. My guess
it should be created regardless of that being defined and that indeed seems
to fix the crash but am not sure if this is the correct way to go..
Peace,
NG
Index: midiobject.cpp
===================================================================
--- midiobject.cpp (revision 2738)
+++ midiobject.cpp (working copy)
@@ -52,10 +52,10 @@
// Wait for the m_pScriptEngine to initialize
while(!m_pScriptEngine->isReady()) ;
m_pScriptEngine->moveToThread(m_pScriptEngine);
+#endif
m_pMidiMapping = new MidiMapping(*this);
// m_pMidiMapping->loadInitialPreset();
-#endif
connect(this, SIGNAL(midiEvent(MidiMessage)), m_pMidiMapping, SLOT(finishMidiLearn(MidiMessage)));
connect(m_pMidiMapping, SIGNAL(midiLearningStarted()), this, SLOT(enableMidiLearn()));
connect(m_pMidiMapping, SIGNAL(midiLearningFinished()), this, SLOT(disableMidiLearn()));
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel