mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Don't load view states for empty guids.
This commit is contained in:
@@ -60,6 +60,7 @@ ViewHeader::visibleSectionCount() const
|
||||
void
|
||||
ViewHeader::onSectionsChanged()
|
||||
{
|
||||
if ( !m_guid.isEmpty() )
|
||||
TomahawkSettings::instance()->setPlaylistColumnSizes( m_guid, saveState() );
|
||||
}
|
||||
|
||||
@@ -70,7 +71,10 @@ ViewHeader::checkState()
|
||||
if ( !count() || m_init )
|
||||
return false;
|
||||
|
||||
QByteArray state = TomahawkSettings::instance()->playlistColumnSizes( m_guid );
|
||||
QByteArray state;
|
||||
if ( !m_guid.isEmpty() )
|
||||
state = TomahawkSettings::instance()->playlistColumnSizes( m_guid );
|
||||
|
||||
if ( !state.isEmpty() )
|
||||
{
|
||||
restoreState( state );
|
||||
|
Reference in New Issue
Block a user