From: Jean-Baptiste Mardelle Date: Mon, 11 Feb 2013 22:58:21 +0000 (+0100) Subject: Fix Coverity #980705 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=43ffc1fcd87920cf2adeafb3f9b19a4b0761bcb2;p=kdenlive Fix Coverity #980705 --- diff --git a/src/stopmotion/stopmotion.cpp b/src/stopmotion/stopmotion.cpp index b937eff3..d507f2ab 100644 --- a/src/stopmotion/stopmotion.cpp +++ b/src/stopmotion/stopmotion.cpp @@ -443,16 +443,6 @@ void StopmotionWidget::slotSwitchLive() { setUpdatesEnabled(false); slotLive(!live_button->isChecked()); - /*if (m_frame_preview->isHidden()) { - //if (m_bmCapture) m_bmCapture->hidePreview(true); - m_videoBox->setHidden(true); - m_frame_preview->setHidden(false); - } else { - m_frame_preview->setHidden(true); - //if (m_bmCapture) m_bmCapture->hidePreview(false); - m_videoBox->setHidden(false); - capture_button->setEnabled(true); - }*/ setUpdatesEnabled(true); } @@ -728,8 +718,6 @@ void StopmotionWidget::slotShowFrame(const QString& path) capture_button->setEnabled(false); slotLive(false); if (!img.isNull()) { - //m_videoBox->setHidden(true); - m_frame_preview->setImage(img); m_frame_preview->setHidden(false); m_frame_preview->update(); diff --git a/src/stopmotion/stopmotion.h b/src/stopmotion/stopmotion.h index 124b1167..25bdb92e 100644 --- a/src/stopmotion/stopmotion.h +++ b/src/stopmotion/stopmotion.h @@ -106,8 +106,6 @@ private: /** @brief Capture holder that will handle all video operation. */ MltDeviceCapture *m_captureDevice; - VideoContainer *m_videoBox; - /** @brief Holds the name of the current sequence. * Files will be saved in project folder with name: sequence001.png */ QString m_sequenceName;