From add5bdf8de6272f8d7544163bae27ec3fb3557da Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Wed, 11 Apr 2012 20:34:42 -0400 Subject: [PATCH] Add assert to make it obvious during development if an info plugin is not in the right thread, thanks Leo for the suggestion --- src/libtomahawk/infosystem/infosystem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libtomahawk/infosystem/infosystem.cpp b/src/libtomahawk/infosystem/infosystem.cpp index 9db1bfe80..2dca67a95 100644 --- a/src/libtomahawk/infosystem/infosystem.cpp +++ b/src/libtomahawk/infosystem/infosystem.cpp @@ -227,6 +227,7 @@ InfoSystem::addInfoPlugin( Tomahawk::InfoSystem::InfoPluginPtr plugin ) if ( plugin.data()->thread() != m_infoSystemWorkerThreadController->worker()->thread() ) { + Q_ASSERT( false ); tDebug() << Q_FUNC_INFO << "The object must be moved to the worker thread first, see InfoSystem::workerThread()"; return; }