]> git.sur5r.net Git - minitube/commitdiff
Hide playlist on URL search
authorFlavio <flavio@odisseo.local>
Wed, 2 Feb 2011 14:48:28 +0000 (15:48 +0100)
committerFlavio <flavio@odisseo.local>
Wed, 2 Feb 2011 14:48:28 +0000 (15:48 +0100)
src/MediaView.cpp

index 613ebeccf56c102fb6dfc5ca012bd9a41724f364..57ed2004cc11bb241195e19c4b3e0f7d60febeab 100644 (file)
@@ -183,7 +183,10 @@ void MediaView::search(SearchParams *searchParams) {
         if (separator > 0 && separator + 1 < keyword.length()) {
             display = keyword.mid(separator+1);
         }
-    }
+
+        // also hide sidebar
+        playlistWidget->hide();
+    } else playlistWidget->show();
     // tr("You're watching \"%1\"").arg(searchParams->keywords())
 
 }