From 183b0c89584eb3c890b4aa168134b0aca36eaec4 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Thu, 17 May 2012 18:11:13 -0400 Subject: [PATCH] Don't show spotify config widget if we have no resolver --- src/accounts/spotify/SpotifyAccount.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/accounts/spotify/SpotifyAccount.cpp b/src/accounts/spotify/SpotifyAccount.cpp index c3e4106f5..866cbc309 100644 --- a/src/accounts/spotify/SpotifyAccount.cpp +++ b/src/accounts/spotify/SpotifyAccount.cpp @@ -585,6 +585,9 @@ SpotifyAccount::icon() const QWidget* SpotifyAccount::configurationWidget() { + if ( m_spotifyResolver.isNull() ) + return 0; + if ( m_configWidget.isNull() ) { m_configWidget = QWeakPointer< SpotifyAccountConfig >( new SpotifyAccountConfig( this ) );