mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 07:07:05 +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 )
|
if ( page->widget() == widget )
|
||||||
{
|
{
|
||||||
m_pageHistory.removeAt( i );
|
m_pageHistory.removeAt( i );
|
||||||
|
if ( m_historyPosition > i )
|
||||||
|
m_historyPosition--;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user