From 72add01e66910633b1c354eeb40c41a2fc202ea9 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 8 Aug 2011 21:32:54 +0200 Subject: [PATCH] * Prevent multiple resolvingFinished() signals being emitted from Query. --- src/libtomahawk/query.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/libtomahawk/query.cpp b/src/libtomahawk/query.cpp index 93ac8540e..2e675a389 100644 --- a/src/libtomahawk/query.cpp +++ b/src/libtomahawk/query.cpp @@ -169,9 +169,11 @@ Query::removeResult( const Tomahawk::result_ptr& result ) void Query::onResolvingFinished() { -// qDebug() << Q_FUNC_INFO << "Finished resolving." << toString(); - m_resolveFinished = true; - emit resolvingFinished( m_solved ); + if ( !m_resolveFinished ) + { + m_resolveFinished = true; + emit resolvingFinished( m_solved ); + } }