1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02: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 void
ViewHeader::onSectionsChanged() ViewHeader::onSectionsChanged()
{ {
tDebug( LOGVERBOSE ) << "Saving columns state for view guid:" << m_guid;
if ( !m_guid.isEmpty() ) if ( !m_guid.isEmpty() )
TomahawkSettings::instance()->setPlaylistColumnSizes( m_guid, saveState() ); TomahawkSettings::instance()->setPlaylistColumnSizes( m_guid, saveState() );
} }
@@ -77,10 +78,8 @@ ViewHeader::checkState()
if ( !state.isEmpty() ) if ( !state.isEmpty() )
{ {
tDebug( LOGVERBOSE ) << "Restoring columns state for view:" << m_guid;
restoreState( state ); restoreState( state );
if ( m_guid.startsWith( "playlistview" ) ) // HACK
setSortIndicator( -1, Qt::AscendingOrder );
} }
else else
{ {