mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-23 22:25:11 +02:00
No need to use QPersistentModelIndex if I don't store it.
This commit is contained in:
@@ -176,7 +176,7 @@ AccountsToolButton::updateIcons()
|
||||
|
||||
for ( int i = 0; i < m_proxy->rowCount(); ++i )
|
||||
{
|
||||
QPersistentModelIndex idx( m_proxy->index( i, 0 ) );
|
||||
QModelIndex idx = m_proxy->index( i, 0 );
|
||||
const QList< Tomahawk::Accounts::Account* >& children =
|
||||
idx.data( Tomahawk::Accounts::AccountModel::ChildrenOfFactoryRole )
|
||||
.value< QList< Tomahawk::Accounts::Account* > >();
|
||||
|
Reference in New Issue
Block a user