Commit da7fa85f authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix JogShuttle null reciever error, patch by The DiveO

BUG: 353494
REVIEW: 125520
parent 63f3cf04
...@@ -135,7 +135,6 @@ void ShuttleThread::shuttle(const media_ctrl_event& ev) ...@@ -135,7 +135,6 @@ void ShuttleThread::shuttle(const media_ctrl_event& ev)
//qDebug() << "Jog shuttle value is out of range: " << MaxShuttleRange; //qDebug() << "Jog shuttle value is out of range: " << MaxShuttleRange;
return; return;
} }
QApplication::postEvent(m_parent, QApplication::postEvent(m_parent,
new MediaCtrlEvent(MediaCtrlEvent::Shuttle, value)); new MediaCtrlEvent(MediaCtrlEvent::Shuttle, value));
} }
...@@ -148,7 +147,7 @@ void ShuttleThread::jog(const media_ctrl_event& ev) ...@@ -148,7 +147,7 @@ void ShuttleThread::jog(const media_ctrl_event& ev)
JogShuttle::JogShuttle(const QString &device, QObject *parent) : JogShuttle::JogShuttle(const QString &device, QObject *parent) :
QObject(parent), QObject(parent),
m_shuttleProcess(device, parent) m_shuttleProcess(device, this)
{ {
m_shuttleProcess.start(); m_shuttleProcess.start();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment