]> git.sur5r.net Git - minitube/commitdiff
transition is actually used inside ifdef
authorFlavio Tordini <flavio.tordini@gmail.com>
Wed, 29 Apr 2015 11:47:37 +0000 (13:47 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Wed, 29 Apr 2015 11:47:37 +0000 (13:47 +0200)
src/mainwindow.cpp

index 10c2734bea6c56aaa95afd74276753a9e9ed82d1..5ddaf12c3ecbdec880ab5845cf69902e864c8f3b 100644 (file)
@@ -888,7 +888,6 @@ void MainWindow::goBack() {
 }
 
 void MainWindow::showWidget(QWidget* widget, bool transition) {
-    Q_UNUSED(transition);
     if (compactViewAct->isChecked())
         compactViewAct->toggle();
 
@@ -945,6 +944,8 @@ void MainWindow::showWidget(QWidget* widget, bool transition) {
     // if (transition && (oldWidget != mediaView || !mediaView->getVideoArea()->isVideoShown()))
     if (transition)
         Extra::fadeInWidget(oldWidget, widget);
+#else
+    Q_UNUSED(transition);
 #endif
 
     history->push(widget);