diff --git a/src/libtomahawk/playlist/playlistmanager.cpp b/src/libtomahawk/playlist/playlistmanager.cpp index b8062fb86..cdf7ab594 100644 --- a/src/libtomahawk/playlist/playlistmanager.cpp +++ b/src/libtomahawk/playlist/playlistmanager.cpp @@ -615,6 +615,8 @@ PlaylistManager::onWidgetDestroyed( QWidget* widget ) if ( page->widget() == widget ) { m_pageHistory.removeAt( i ); + if ( m_historyPosition > i ) + m_historyPosition--; break; } }