]> git.sur5r.net Git - minitube/commitdiff
Removed unused preprocessor directive
authorFlavio Tordini <flavio.tordini@gmail.com>
Mon, 29 Sep 2014 14:23:11 +0000 (16:23 +0200)
committerFlavio <flavio.tordini@gmail.com>
Mon, 29 Sep 2014 14:23:11 +0000 (16:23 +0200)
src/mediaview.cpp

index 13691a10fdaf114001df6b2026db6f8e03a1f465..2279404bc8a637e276437424d85f7529c89207e9 100644 (file)
@@ -434,7 +434,6 @@ void MediaView::activeRowChanged(int row) {
     The::globalActions()->value("stopafterthis")->setEnabled(true);
     The::globalActions()->value("related-videos")->setEnabled(true);
 
-#ifndef APP_NO_DOWNLOADS
     bool enableDownload = video->license() == Video::LicenseCC;
 #ifdef APP_ACTIVATION
     enableDownload = enableDownload || Activation::instance().isLegacy();
@@ -445,7 +444,6 @@ void MediaView::activeRowChanged(int row) {
     QAction *a = The::globalActions()->value("download");
     a->setEnabled(enableDownload);
     a->setVisible(enableDownload);
-#endif
 
     updateSubscriptionAction(video, YTUser::isSubscribed(video->userId()));