# HG changeset patch # User Chris Cannam # Date 1394559293 0 # Node ID 1e3af7f4fa86cfb8cba91bc1c9fc2d92497aee5b # Parent 28c17ce7a6e976d3bddc11f520b6f5715083393f# Parent 3144af512ea3447e6cf1775f02b5b54b5a5ddeb5 Merge from branch tonioni diff -r 3144af512ea3 -r 1e3af7f4fa86 framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Tue Mar 11 14:54:28 2014 +0000 +++ b/framework/MainWindowBase.cpp Tue Mar 11 17:34:53 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 3144af512ea3 -r 1e3af7f4fa86 framework/MainWindowBase.h --- a/framework/MainWindowBase.h Tue Mar 11 14:54:28 2014 +0000 +++ b/framework/MainWindowBase.h Tue Mar 11 17:34:53 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;