]> git.sesse.net Git - kdenlive/commitdiff
Fix Coverity #980705
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 11 Feb 2013 22:58:21 +0000 (23:58 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 11 Feb 2013 22:58:21 +0000 (23:58 +0100)
src/stopmotion/stopmotion.cpp
src/stopmotion/stopmotion.h

index b937eff3dbdd605a8b8b93dece083131b63ee7f3..d507f2abac7b0ab8df3e597ca43a2a3d6b37fcd5 100644 (file)
@@ -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();
index 124b11670abbb1d3e18c4deed6678d4105a0d6b7..25bdb92ed79b78d5ce09701dfd8f34dc8e06f51c 100644 (file)
@@ -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;