aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <[email protected]>2015-10-06 01:30:30 +0200
committerJean-Baptiste Mardelle <[email protected]>2015-10-06 01:30:30 +0200
commit661284ab7a6b99b7d1c5c93310d31cf7cf9ce400 (patch)
tree01722347452d4d9d0043ce9e0ce2e6fa1762861e
parent8650166a5264d4a41ad7d4e1440bed3d9479c215 (diff)
Fix JogShuttle null reciever error, patch by The DiveO
BUG: 353494 REVIEW: 125520
-rw-r--r--src/jogshuttle/jogshuttle.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/jogshuttle/jogshuttle.cpp b/src/jogshuttle/jogshuttle.cpp
index 817c9ac..4424c21 100644
--- a/src/jogshuttle/jogshuttle.cpp
+++ b/src/jogshuttle/jogshuttle.cpp
@@ -135,7 +135,6 @@ void ShuttleThread::shuttle(const media_ctrl_event& ev)
//qDebug() << "Jog shuttle value is out of range: " << MaxShuttleRange;
return;
}
-
QApplication::postEvent(m_parent,
new MediaCtrlEvent(MediaCtrlEvent::Shuttle, value));
}
@@ -148,7 +147,7 @@ void ShuttleThread::jog(const media_ctrl_event& ev)
JogShuttle::JogShuttle(const QString &device, QObject *parent) :
QObject(parent),
- m_shuttleProcess(device, parent)
+ m_shuttleProcess(device, this)
{
m_shuttleProcess.start();
}