From 0ab9c9fd0b173b811fdd976f4fc6046a89d66f54 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Fri, 21 Sep 2012 15:30:20 -0400 Subject: [PATCH] Move resulthint checking to playlistmodel --- src/libtomahawk/Query.cpp | 4 ---- src/libtomahawk/playlist/PlaylistModel.cpp | 8 ++++++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libtomahawk/Query.cpp b/src/libtomahawk/Query.cpp index 9b8c8e391..8326667cc 100644 --- a/src/libtomahawk/Query.cpp +++ b/src/libtomahawk/Query.cpp @@ -36,7 +36,6 @@ #include "audio/AudioEngine.h" #include "utils/Logger.h" -#include "utils/WebResultHintChecker.h" using namespace Tomahawk; @@ -777,9 +776,6 @@ void Query::setSaveHTTPResultHint( bool saveResultHint ) { m_saveResultHint = saveResultHint; - - // Make sure it's a valid url - new WebResultHintChecker( m_ownRef.toStrongRef() ); } diff --git a/src/libtomahawk/playlist/PlaylistModel.cpp b/src/libtomahawk/playlist/PlaylistModel.cpp index f5724aaa4..9047cbf25 100644 --- a/src/libtomahawk/playlist/PlaylistModel.cpp +++ b/src/libtomahawk/playlist/PlaylistModel.cpp @@ -1,7 +1,8 @@ /* === This file is part of Tomahawk Player - === * - * Copyright 2010-2011, Christian Muehlhaeuser - * Copyright 2010-2012, Jeff Mitchell + * Copyright 2010-2011, Christian Muehlhaeuser rg> + * Copyright 2010-2012, Leo Franchi * * Tomahawk is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -34,6 +35,7 @@ #include "PlayableItem.h" #include "utils/TomahawkUtils.h" #include "utils/Logger.h" +#include using namespace Tomahawk; @@ -236,6 +238,8 @@ PlaylistModel::insertEntries( const QList< Tomahawk::plentry_ptr >& entries, int } connect( plitem, SIGNAL( dataChanged() ), SLOT( onDataChanged() ) ); + + WebResultHintChecker::checkQuery( entry->query() ); } if ( !m_waitingForResolved.isEmpty() )