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