# HG changeset patch # User Chris Cannam # Date 1390921335 0 # Node ID 28c17ce7a6e976d3bddc11f520b6f5715083393f # Parent c837368b1faf2cd3727242099eefec0a18deb91f# Parent d2c13ec0f1482e003d86c0ba3f7c5e5fbae6de08 Merge from tonioni branch diff -r d2c13ec0f148 -r 28c17ce7a6e9 framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Fri Jan 17 11:59:49 2014 -0500 +++ b/framework/MainWindowBase.cpp Tue Jan 28 15:02:15 2014 +0000 @@ -133,7 +133,6 @@ #endif MainWindowBase::MainWindowBase(bool withAudioOutput, - bool withOSCSupport, bool withMIDIInput) : m_document(0), m_paneStack(0), @@ -254,12 +253,6 @@ if (withMIDIInput) { m_midiInput = new MIDIInput(QApplication::applicationName(), this); } - - if (withOSCSupport) { - m_oscQueueStarter = new OSCQueueStarter(this); - connect(m_oscQueueStarter, SIGNAL(finished()), this, SLOT(oscReady())); - m_oscQueueStarter->start(); - } } MainWindowBase::~MainWindowBase() @@ -270,6 +263,7 @@ delete m_playSource; delete m_viewManager; delete m_oscQueue; + delete m_oscQueueStarter; delete m_midiInput; Profiles::getInstance()->dump(); } @@ -285,6 +279,14 @@ } void +MainWindowBase::startOSCQueue() +{ + m_oscQueueStarter = new OSCQueueStarter(this); + connect(m_oscQueueStarter, SIGNAL(finished()), this, SLOT(oscReady())); + m_oscQueueStarter->start(); +} + +void MainWindowBase::oscReady() { if (m_oscQueue && m_oscQueue->isOK()) { diff -r d2c13ec0f148 -r 28c17ce7a6e9 framework/MainWindowBase.h --- a/framework/MainWindowBase.h Fri Jan 17 11:59:49 2014 -0500 +++ b/framework/MainWindowBase.h Tue Jan 28 15:02:15 2014 +0000 @@ -75,7 +75,7 @@ Q_OBJECT public: - MainWindowBase(bool withAudioOutput, bool withOSCSupport, bool withMIDIInput); + MainWindowBase(bool withAudioOutput, bool withMIDIInput); virtual ~MainWindowBase(); enum AudioFileOpenMode { @@ -309,6 +309,7 @@ OSCQueue *m_oscQueue; OSCQueueStarter *m_oscQueueStarter; + void startOSCQueue(); MIDIInput *m_midiInput;