1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-07 14:46:33 +02:00

* Decrement index in history when we delete a page.

This commit is contained in:
Christian Muehlhaeuser
2011-02-28 11:50:23 +01:00
parent 674ad0b8f6
commit 3cc29db086

View File

@@ -615,6 +615,8 @@ PlaylistManager::onWidgetDestroyed( QWidget* widget )
if ( page->widget() == widget )
{
m_pageHistory.removeAt( i );
if ( m_historyPosition > i )
m_historyPosition--;
break;
}
}