From 59a480db9b9b7a6ef3aeb9194579d8f54149fb30 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Mon, 16 Dec 2013 18:05:36 +0100 Subject: [PATCH] Set new effect's properties properly when updating effect --- ffbdevice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ffbdevice.cpp b/ffbdevice.cpp index 350dcb1..cdd0ea1 100644 --- a/ffbdevice.cpp +++ b/ffbdevice.cpp @@ -248,8 +248,10 @@ bool FFBDevice::startEffect(const int idx, FFBEffectTypes type, std::shared_ptr< qDebug() << "Recreating effect" << idx; } else { effect->setInternalIdx(m_effects[idx]->internalIdx()); - if (m_effects[idx]->status() == FFBEffect::FFBEffectStatus::PLAYING) + effect->setStatus(m_effects[idx]->status()); + if (effect->status() == FFBEffect::FFBEffectStatus::PLAYING) { dontStart = true; + } qDebug() << "Updating effect" << idx; } } -- 2.43.5