]> git.sur5r.net Git - minitube/commitdiff
Fix build without APP_SNAPSHOT
authorFlavio Tordini <flavio.tordini@gmail.com>
Wed, 28 Oct 2015 09:06:14 +0000 (10:06 +0100)
committerFlavio Tordini <flavio.tordini@gmail.com>
Wed, 28 Oct 2015 09:06:37 +0000 (10:06 +0100)
src/mediaview.cpp

index da63f68aeb3c97c75a28b558791d51c1248bad87..302c77a1ea478d6ca0c91329c42eb3fba6b48f86 100644 (file)
@@ -404,10 +404,12 @@ void MediaView::stop() {
     Phonon::SeekSlider *slider = MainWindow::instance()->getSeekSlider();
 #endif
 
+#ifdef APP_SNAPSHOT
     if (snapshotSettings) {
         delete snapshotSettings;
         snapshotSettings = 0;
     }
+#endif
 }
 
 const QString & MediaView::getCurrentVideoId() {
@@ -478,11 +480,13 @@ void MediaView::activeRowChanged(int row) {
     slider->setValue(0);
 #endif
 
+#ifdef APP_SNAPSHOT
     if (snapshotSettings) {
         delete snapshotSettings;
         snapshotSettings = 0;
         MainWindow::instance()->adjustStatusBarVisibility();
     }
+#endif
 
     // see you in gotStreamUrl...
 }