1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 09:34:53 +02:00

* Don't emit Database::ready() just because the FuzzyIndex became ready.

This commit is contained in:
Christian Muehlhaeuser
2013-06-20 09:50:23 +02:00
parent 98354d1693
commit 5e5bfe2bb5

View File

@@ -24,6 +24,7 @@
#include "DatabaseWorker.h"
#include "IdThreadWorker.h"
#include "utils/Logger.h"
#include <boost/concept_check.hpp>
#define DEFAULT_WORKER_THREADS 4
#define MAX_WORKER_THREADS 16
@@ -56,7 +57,6 @@ Database::Database( const QString& dbname, QObject* parent )
connect( m_impl, SIGNAL( indexReady() ), SLOT( markAsReady() ) );
connect( m_impl, SIGNAL( indexReady() ), SIGNAL( indexReady() ) );
connect( m_impl, SIGNAL( indexReady() ), SIGNAL( ready() ) );
Q_ASSERT( m_workerRW );
m_workerRW.data()->start();
@@ -196,6 +196,10 @@ Database::impl()
void
Database::markAsReady()
{
if ( m_ready )
return;
tLog() << Q_FUNC_INFO << "Database is ready now!";
m_ready = true;
emit ready();
}