mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
Fix compilation
qFatal does not work with <<
This commit is contained in:
parent
97cc05eeea
commit
9b1779bb06
1 changed files with 2 additions and 7 deletions
|
@ -80,13 +80,8 @@ void SyncJournalDb::commitTransaction()
|
||||||
bool SyncJournalDb::sqlFail( const QString& log, const QSqlQuery& query )
|
bool SyncJournalDb::sqlFail( const QString& log, const QSqlQuery& query )
|
||||||
{
|
{
|
||||||
commitTransaction();
|
commitTransaction();
|
||||||
#ifdef NDEBUG
|
qWarning() << "SQL Error" << log << query.lastError().text();
|
||||||
qWarning()
|
Q_ASSERT(!"SQL ERROR");
|
||||||
#else
|
|
||||||
qFatal()
|
|
||||||
#endif
|
|
||||||
<< "SQL Error" << log << query.lastError().text();
|
|
||||||
|
|
||||||
_db.close();
|
_db.close();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue