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

* Use our own (fail-safer) commit transaction method.

This commit is contained in:
Christian Muehlhaeuser 2012-06-06 16:26:12 +02:00
parent d8c3006cb4
commit d481ffbd90

View File

@ -193,7 +193,7 @@ DatabaseWorker::doWork()
if ( cmd->doesMutates() )
{
qDebug() << "Committing" << cmd->commandname() << cmd->guid();
if ( !m_dbimpl->database().commit() )
if ( !m_dbimpl->newquery().commitTransaction() )
{
tDebug() << "FAILED TO COMMIT TRANSACTION*";
throw "commit failed";