1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-17 03:45:56 +01:00

Don't show the search box for GS and Spotify if user isn't logged in

This commit is contained in:
Arnaud Bienner 2012-07-21 20:15:36 +02:00
parent 63c42503c6
commit 13daaf7106
2 changed files with 6 additions and 2 deletions

View File

@ -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) {

View File

@ -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() {