mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 03:49:20 +03:00
Fix compile error and add warning.
This commit is contained in:
parent
2f20f3c65d
commit
04b62b139d
1 changed files with 3 additions and 1 deletions
|
@ -390,7 +390,7 @@ SqlQuery* SocketApi::getSqlQuery( Folder *folder )
|
|||
QString dbFileName = folder->journalDb()->databaseFilePath();
|
||||
|
||||
QFileInfo fi(dbFileName);
|
||||
if( fi.exists(dbFileName) ) {
|
||||
if( fi.exists() ) {
|
||||
SqlDatabase *db = new SqlDatabase;
|
||||
|
||||
if( db->open(dbFileName) ) {
|
||||
|
@ -405,6 +405,8 @@ SqlQuery* SocketApi::getSqlQuery( Folder *folder )
|
|||
_dbQueries.insert( folder, query);
|
||||
return query;
|
||||
}
|
||||
} else {
|
||||
qDebug() << Q_FUNC_INFO << "Journal to query does not yet exist.";
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue