1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-24 06:33:04 +02:00

No need to use QPersistentModelIndex if I don't store it.

This commit is contained in:
Teo Mrnjavac
2012-08-16 21:56:20 +02:00
parent 133509bf5c
commit cfa67f806b

View File

@@ -176,7 +176,7 @@ AccountsToolButton::updateIcons()
for ( int i = 0; i < m_proxy->rowCount(); ++i ) 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 = const QList< Tomahawk::Accounts::Account* >& children =
idx.data( Tomahawk::Accounts::AccountModel::ChildrenOfFactoryRole ) idx.data( Tomahawk::Accounts::AccountModel::ChildrenOfFactoryRole )
.value< QList< Tomahawk::Accounts::Account* > >(); .value< QList< Tomahawk::Accounts::Account* > >();