Fix compile error and add warning.

This commit is contained in:
Klaas Freitag 2014-10-20 17:10:34 +02:00
parent 2f20f3c65d
commit 04b62b139d

View file

@ -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;
}