1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 01:09:42 +01:00

* Remove wonky assert.

This commit is contained in:
Christian Muehlhaeuser 2012-06-22 12:53:09 +02:00
parent 54e7fbdd5d
commit 9c8807302b
2 changed files with 2 additions and 3 deletions

View File

@ -136,13 +136,12 @@ Database::enqueue( const QSharedPointer<DatabaseCommand>& lc )
DatabaseImpl*
Database::impl()
{
Q_ASSERT( m_ready );
QMutexLocker lock( &m_mutex );
QThread* thread = QThread::currentThread();
if ( !m_implHash.contains( thread ) )
{
tDebug() << Q_FUNC_INFO << "Creating database impl for thread " << QThread::currentThread();
tDebug() << Q_FUNC_INFO << "Creating database impl for thread" << QThread::currentThread();
DatabaseImpl* impl = m_impl->clone();
m_implHash.insert( thread, impl );
}

View File

@ -155,7 +155,7 @@ main( int argc, char *argv[] )
#endif
KDSingleApplicationGuard guard( KDSingleApplicationGuard::AutoKillOtherInstances );
QObject::connect( &guard, SIGNAL( instanceStarted( KDSingleApplicationGuard::Instance ) ), &a, SLOT( instanceStarted( KDSingleApplicationGuard::Instance ) ) );
QObject::connect( &guard, SIGNAL( instanceStarted( KDSingleApplicationGuard::Instance ) ), &a, SLOT( instanceStarted( KDSingleApplicationGuard::Instance ) ) );
if ( guard.isPrimaryInstance() )
a.init();