mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Remove wonky assert.
This commit is contained in:
@@ -136,13 +136,12 @@ Database::enqueue( const QSharedPointer<DatabaseCommand>& lc )
|
|||||||
DatabaseImpl*
|
DatabaseImpl*
|
||||||
Database::impl()
|
Database::impl()
|
||||||
{
|
{
|
||||||
Q_ASSERT( m_ready );
|
|
||||||
QMutexLocker lock( &m_mutex );
|
QMutexLocker lock( &m_mutex );
|
||||||
|
|
||||||
QThread* thread = QThread::currentThread();
|
QThread* thread = QThread::currentThread();
|
||||||
if ( !m_implHash.contains( thread ) )
|
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();
|
DatabaseImpl* impl = m_impl->clone();
|
||||||
m_implHash.insert( thread, impl );
|
m_implHash.insert( thread, impl );
|
||||||
}
|
}
|
||||||
|
@@ -155,7 +155,7 @@ main( int argc, char *argv[] )
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
KDSingleApplicationGuard guard( KDSingleApplicationGuard::AutoKillOtherInstances );
|
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() )
|
if ( guard.isPrimaryInstance() )
|
||||||
a.init();
|
a.init();
|
||||||
|
Reference in New Issue
Block a user