From cfa67f806b2d1422049a2f5115b0fe253d59e804 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 16 Aug 2012 21:56:20 +0200 Subject: [PATCH] No need to use QPersistentModelIndex if I don't store it. --- src/widgets/AccountsToolButton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/AccountsToolButton.cpp b/src/widgets/AccountsToolButton.cpp index b042f39c4..517616e00 100644 --- a/src/widgets/AccountsToolButton.cpp +++ b/src/widgets/AccountsToolButton.cpp @@ -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* > >();