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:
@@ -615,6 +615,8 @@ PlaylistManager::onWidgetDestroyed( QWidget* widget )
|
||||
if ( page->widget() == widget )
|
||||
{
|
||||
m_pageHistory.removeAt( i );
|
||||
if ( m_historyPosition > i )
|
||||
m_historyPosition--;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user