1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-30 19:00:12 +02:00

allow deleting of temporary item in source tree view

This commit is contained in:
Leo Franchi
2011-08-16 21:35:43 -04:00
parent 35a7acd606
commit ec2164b77e
9 changed files with 141 additions and 13 deletions

View File

@@ -541,6 +541,18 @@ ViewManager::showHistory( int historyPosition )
setPage( page, false );
}
void
ViewManager::removeFromHistory ( ViewPage* p )
{
if ( currentPage() == p )
{
historyBack();
m_pageHistory.removeAll( p );
} else
if ( m_pageHistory.removeAll( p ) )
setHistoryPosition( m_historyPosition - 1 );
}
void
ViewManager::setFilter( const QString& filter )