diff --git a/src/libtomahawk/accounts/spotify/SpotifyAccountConfig.cpp b/src/libtomahawk/accounts/spotify/SpotifyAccountConfig.cpp
index 6a902d609..09ce54add 100644
--- a/src/libtomahawk/accounts/spotify/SpotifyAccountConfig.cpp
+++ b/src/libtomahawk/accounts/spotify/SpotifyAccountConfig.cpp
@@ -52,6 +52,7 @@ SpotifyAccountConfig::SpotifyAccountConfig( SpotifyAccount *account )
connect( m_ui->usernameEdit, SIGNAL( textEdited( QString ) ), this, SLOT( resetLoginButton() ) );
connect( m_ui->passwordEdit, SIGNAL( textEdited( QString ) ), this, SLOT( resetLoginButton() ) );
+ connect( m_ui->selectAllCheckbox, SIGNAL( stateChanged( int ) ), this, SLOT( selectAllPlaylists() ) );
loadFromConfig();
m_playlistsLoading = new AnimatedSpinner( m_ui->playlistList );
@@ -202,6 +203,15 @@ SpotifyAccountConfig::loginResponse( bool success, const QString& msg, const QSt
}
+void
+SpotifyAccountConfig::selectAllPlaylists()
+{
+ for( int i = 0; i < m_ui->playlistList->count(); i++ )
+ {
+ QListWidgetItem* item = m_ui->playlistList->item( i );
+ item->setCheckState( m_ui->selectAllCheckbox->checkState() );
+ }
+}
void
SpotifyAccountConfig::showLoggedIn()
diff --git a/src/libtomahawk/accounts/spotify/SpotifyAccountConfig.h b/src/libtomahawk/accounts/spotify/SpotifyAccountConfig.h
index 712e139ad..1080d2a70 100644
--- a/src/libtomahawk/accounts/spotify/SpotifyAccountConfig.h
+++ b/src/libtomahawk/accounts/spotify/SpotifyAccountConfig.h
@@ -70,6 +70,7 @@ protected:
private slots:
void doLogin();
void resetLoginButton();
+ void selectAllPlaylists();
private:
void showLoggedIn();
diff --git a/src/libtomahawk/accounts/spotify/SpotifyAccountConfig.ui b/src/libtomahawk/accounts/spotify/SpotifyAccountConfig.ui
index 60edc4ebd..d465487a1 100644
--- a/src/libtomahawk/accounts/spotify/SpotifyAccountConfig.ui
+++ b/src/libtomahawk/accounts/spotify/SpotifyAccountConfig.ui
@@ -7,7 +7,7 @@
0
0
375
- 417
+ 487
@@ -135,6 +135,13 @@
+ -
+
+
+ Select All
+
+
+
-