mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Prevent DatabaseWorker from executing commands for offline sources.
This commit is contained in:
@@ -86,6 +86,8 @@ DatabaseWorker::doWork()
|
||||
Q_UNUSED( transok );
|
||||
}
|
||||
try
|
||||
{
|
||||
if ( !cmd->source().isNull() && !cmd->source()->collection().isNull() )
|
||||
{
|
||||
cmd->_exec( m_dbimpl ); // runs actual SQL stuff
|
||||
|
||||
@@ -146,6 +148,7 @@ DatabaseWorker::doWork()
|
||||
cmd->postCommit();
|
||||
//qDebug() << "Post commit finished for"<< cmd->commandname();
|
||||
}
|
||||
}
|
||||
catch( const char * msg )
|
||||
{
|
||||
qDebug() << endl
|
||||
|
@@ -48,6 +48,7 @@ FuzzyIndex::beginIndexing()
|
||||
|
||||
try
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO << "Starting indexing.";
|
||||
if ( m_luceneReader != 0 )
|
||||
{
|
||||
qDebug() << "Deleting old lucene stuff.";
|
||||
|
Reference in New Issue
Block a user