From 13daaf7106ab126d1dcb9f2531e8522ad5666b60 Mon Sep 17 00:00:00 2001 From: Arnaud Bienner Date: Sat, 21 Jul 2012 20:15:36 +0200 Subject: [PATCH] Don't show the search box for GS and Spotify if user isn't logged in --- src/internet/groovesharkservice.cpp | 4 +++- src/internet/spotifyservice.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/internet/groovesharkservice.cpp b/src/internet/groovesharkservice.cpp index 9ff9e7072..951408070 100644 --- a/src/internet/groovesharkservice.cpp +++ b/src/internet/groovesharkservice.cpp @@ -166,7 +166,9 @@ void GroovesharkService::ShowConfig() { } QWidget* GroovesharkService::HeaderWidget() const { - return search_box_; + if (IsLoggedIn()) + return search_box_; + return NULL; } void GroovesharkService::Search(const QString& text, bool now) { diff --git a/src/internet/spotifyservice.cpp b/src/internet/spotifyservice.cpp index 5b8746e6c..c15cc38e4 100644 --- a/src/internet/spotifyservice.cpp +++ b/src/internet/spotifyservice.cpp @@ -503,7 +503,9 @@ PlaylistItem::Options SpotifyService::playlistitem_options() const { } QWidget* SpotifyService::HeaderWidget() const { - return search_box_; + if (IsLoggedIn()) + return search_box_; + return NULL; } void SpotifyService::EnsureMenuCreated() {