]> Devoid-pointer.net GitWeb - FFBChecker.git/commitdiff
Query effect status by its index instead of setting the effect status
authorMichal Malý <madcatxster@devoid-pointer.net>
Wed, 8 Jul 2015 15:50:26 +0000 (17:50 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Wed, 8 Jul 2015 15:50:26 +0000 (17:50 +0200)
caption directly.

mainwindow.cpp

index fa308a98baf448bf6818e0b5be77e52f816ef4da..36a221a50921d713bd428d5d2ce5542ccadc2591 100644 (file)
@@ -192,7 +192,7 @@ void MainWindow::onRemoveEffectClicked()
   if (!m_activeDevice->removeAndEraseEffect(effectIdx))
     showErrorMsgBox(ErrorMessages::CANT_REMOVE_EFFECT);
   else
-    setEffectStatusText(FFBEffect::FFBEffectStatus::NOT_LOADED);
+    setEffectStatusText(m_activeDevice->effectStatusByIdx(effectIdx));
 }
 
 void MainWindow::onStartEffectClicked()