Exchanges refreshed every minute

This commit is contained in:
felixrojauro
2015-11-30 14:35:30 +01:00
parent 9e2c8f331a
commit 7d283e555c
6 changed files with 27 additions and 8 deletions

View File

@@ -32,10 +32,12 @@ void GUIExchangesControl::initializeExchangesView( GUIExchangesListView* a_pView
void GUIExchangesControl::slotPopulateListView( JsonActiveExchangesParser* a_pActiveExchanges )
{
if ( m_pExchangesView )
if ( m_pExchangesView && a_pActiveExchanges )
{
QmlExchangesListModel* pExchangesModel = new QmlExchangesListModel( *a_pActiveExchanges );
m_pExchangesView->setModel( pExchangesModel );
delete a_pActiveExchanges;
a_pActiveExchanges = 0;
}
}