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