From 1edbac57a3f51c27ccc5a790c8ec6e8a1a0ca111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Lindstr=C3=B6m?= Date: Mon, 24 Sep 2012 22:59:19 +0200 Subject: [PATCH] Extra debug --- src/libtomahawk/widgets/WhatsHotWidget.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/widgets/WhatsHotWidget.cpp b/src/libtomahawk/widgets/WhatsHotWidget.cpp index 169ec7a71..d101d0032 100644 --- a/src/libtomahawk/widgets/WhatsHotWidget.cpp +++ b/src/libtomahawk/widgets/WhatsHotWidget.cpp @@ -105,6 +105,7 @@ WhatsHotWidget::WhatsHotWidget( QWidget* parent ) // Read last viewed charts, to be used as defaults m_currentVIds = TomahawkSettings::instance()->lastChartIds().toMap(); + qDebug() << "Got last chartIds:" << m_currentVIds; } @@ -112,6 +113,7 @@ WhatsHotWidget::~WhatsHotWidget() { qDebug() << "Deleting whatshot"; // Write the settings + qDebug() << "Writing chartIds to settings: " << m_currentVIds; TomahawkSettings::instance()->setLastChartIds( m_currentVIds ); qDeleteAll( m_workers ); m_workers.clear(); @@ -207,10 +209,12 @@ WhatsHotWidget::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestDat defaults = returnedData.take( "defaults" ).toMap(); QString defaultSource = returnedData.take( "defaultSource" ).toString(); + qDebug() << "Have defaultmap" << defaults; + qDebug() << "Have customDefault" << m_currentVIds; // Merge defaults with current defaults, split the value in to a list foreach( const QString&key, m_currentVIds.keys() ) defaults[ key ] = m_currentVIds.value( key ).toString().split( "/" ); - + qDebug() << "Defaults after merge" << defaults; foreach ( const QString label, returnedData.keys() ) { QStandardItem *childItem = parseNode( rootItem, label, returnedData[ label ] );