1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-25 02:09:48 +01:00

* Removed obsolete hack from ViewHeader.

This commit is contained in:
Christian Muehlhaeuser 2012-11-09 06:36:16 +01:00
parent 835a0b3762
commit dad52a1590

View File

@ -60,6 +60,7 @@ ViewHeader::visibleSectionCount() const
void
ViewHeader::onSectionsChanged()
{
tDebug( LOGVERBOSE ) << "Saving columns state for view guid:" << m_guid;
if ( !m_guid.isEmpty() )
TomahawkSettings::instance()->setPlaylistColumnSizes( m_guid, saveState() );
}
@ -77,10 +78,8 @@ ViewHeader::checkState()
if ( !state.isEmpty() )
{
tDebug( LOGVERBOSE ) << "Restoring columns state for view:" << m_guid;
restoreState( state );
if ( m_guid.startsWith( "playlistview" ) ) // HACK
setSortIndicator( -1, Qt::AscendingOrder );
}
else
{