Don't show the search box for GS and Spotify if user isn't logged in
This commit is contained in:
parent
63c42503c6
commit
13daaf7106
|
@ -166,7 +166,9 @@ void GroovesharkService::ShowConfig() {
|
||||||
}
|
}
|
||||||
|
|
||||||
QWidget* GroovesharkService::HeaderWidget() const {
|
QWidget* GroovesharkService::HeaderWidget() const {
|
||||||
return search_box_;
|
if (IsLoggedIn())
|
||||||
|
return search_box_;
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GroovesharkService::Search(const QString& text, bool now) {
|
void GroovesharkService::Search(const QString& text, bool now) {
|
||||||
|
|
|
@ -503,7 +503,9 @@ PlaylistItem::Options SpotifyService::playlistitem_options() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
QWidget* SpotifyService::HeaderWidget() const {
|
QWidget* SpotifyService::HeaderWidget() const {
|
||||||
return search_box_;
|
if (IsLoggedIn())
|
||||||
|
return search_box_;
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpotifyService::EnsureMenuCreated() {
|
void SpotifyService::EnsureMenuCreated() {
|
||||||
|
|
Loading…
Reference in New Issue