diff --git a/src/accounts/spotify/SpotifyPlaylistUpdater.cpp b/src/accounts/spotify/SpotifyPlaylistUpdater.cpp index f959d49f8..08a935949 100644 --- a/src/accounts/spotify/SpotifyPlaylistUpdater.cpp +++ b/src/accounts/spotify/SpotifyPlaylistUpdater.cpp @@ -84,7 +84,7 @@ SpotifyPlaylistUpdater::init() connect( playlist().data(), SIGNAL( tracksInserted( QList, int ) ), this, SLOT( tomahawkTracksInserted( QList, int ) ) ); connect( playlist().data(), SIGNAL( tracksRemoved( QList ) ), this, SLOT( tomahawkTracksRemoved( QList ) ) ); - connect( playlist().data(), SIGNAL( renamed(const QString&, const QString& ) ), this, SLOT( tomahawkPlaylistRenamed( const QString&, const QString& ) ) ); + connect( playlist().data(), SIGNAL( renamed( QString, QString ) ), this, SLOT( tomahawkPlaylistRenamed( QString, QString ) ) ); // TODO reorders in a playlist } diff --git a/src/accounts/spotify/SpotifyPlaylistUpdater.h b/src/accounts/spotify/SpotifyPlaylistUpdater.h index 44012909e..1666aee71 100644 --- a/src/accounts/spotify/SpotifyPlaylistUpdater.h +++ b/src/accounts/spotify/SpotifyPlaylistUpdater.h @@ -61,7 +61,7 @@ protected: private slots: void tomahawkTracksInserted( const QList& ,int ); void tomahawkTracksRemoved( const QList& ); - void tomahawkPlaylistRenamed( const QString&, const QString&); + void tomahawkPlaylistRenamed( const QString&, const QString& ); // SpotifyResolver message handlers, all take msgtype, msg as argument void onTracksInsertedReturn( const QString& msgType, const QVariantMap& msg ); void onTracksRemovedReturn( const QString& msgType, const QVariantMap& msg ); diff --git a/src/libtomahawk/playlist.cpp b/src/libtomahawk/playlist.cpp index 45465bac1..7da6bc4d5 100644 --- a/src/libtomahawk/playlist.cpp +++ b/src/libtomahawk/playlist.cpp @@ -251,14 +251,14 @@ Playlist::rename( const QString& title ) void Playlist::setTitle( const QString& title ) { - if( title == m_title ) + if ( title == m_title ) return; const QString oldTitle = m_title; - const QString newTitle = title; m_title = title; + emit changed(); - emit renamed( newTitle, oldTitle ); + emit renamed( m_title, oldTitle ); } void diff --git a/src/libtomahawk/playlist.h b/src/libtomahawk/playlist.h index f8479144a..7e8bafbf5 100644 --- a/src/libtomahawk/playlist.h +++ b/src/libtomahawk/playlist.h @@ -202,7 +202,7 @@ signals: /// renamed etc. void changed(); - void renamed( const QString&, const QString& ); + void renamed( const QString& newTitle, const QString& oldTitle ); /** * delete command is scheduled but not completed. Do not call remove() again once this