mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Better debug spam on column restore
This commit is contained in:
@@ -81,18 +81,17 @@ ViewHeader::checkState()
|
|||||||
disconnect( this, SIGNAL( sectionResized( int, int, int ) ), this, SLOT( onSectionsChanged() ) );
|
disconnect( this, SIGNAL( sectionResized( int, int, int ) ), this, SLOT( onSectionsChanged() ) );
|
||||||
|
|
||||||
QByteArray state;
|
QByteArray state;
|
||||||
tDebug( LOGVERBOSE ) << "Restoring columns state for view:" << m_guid;
|
|
||||||
|
|
||||||
if ( !m_guid.isEmpty() )
|
if ( !m_guid.isEmpty() )
|
||||||
state = TomahawkSettings::instance()->playlistColumnSizes( m_guid );
|
state = TomahawkSettings::instance()->playlistColumnSizes( m_guid );
|
||||||
|
|
||||||
if ( !state.isEmpty() )
|
if ( !state.isEmpty() )
|
||||||
{
|
{
|
||||||
|
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Restoring columns state for view:" << m_guid;
|
||||||
restoreState( state );
|
restoreState( state );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
tDebug( LOGVERBOSE ) << "Giving columns initial weighting:" << m_columnWeights;
|
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Giving columns of view" << m_guid << "initial weighting:" << m_columnWeights << "for" << count() << "columns";
|
||||||
for ( int i = 0; i < count() - 1; i++ )
|
for ( int i = 0; i < count() - 1; i++ )
|
||||||
{
|
{
|
||||||
if ( isSectionHidden( i ) )
|
if ( isSectionHidden( i ) )
|
||||||
|
Reference in New Issue
Block a user