Fix compilation

qFatal does not work with <<
This commit is contained in:
Olivier Goffart 2014-09-15 18:03:44 +02:00
parent 97cc05eeea
commit 9b1779bb06

View file

@ -80,13 +80,8 @@ void SyncJournalDb::commitTransaction()
bool SyncJournalDb::sqlFail( const QString& log, const QSqlQuery& query )
{
commitTransaction();
#ifdef NDEBUG
qWarning()
#else
qFatal()
#endif
<< "SQL Error" << log << query.lastError().text();
qWarning() << "SQL Error" << log << query.lastError().text();
Q_ASSERT(!"SQL ERROR");
_db.close();
return false;
}