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:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user