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:
parent
835a0b3762
commit
dad52a1590
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user