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 )
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue