diff --git a/src/mirall/socketapi.cpp b/src/mirall/socketapi.cpp index ad7d08d69..bd9a17203 100644 --- a/src/mirall/socketapi.cpp +++ b/src/mirall/socketapi.cpp @@ -389,7 +389,8 @@ SqlQuery* SocketApi::getSqlQuery( Folder *folder ) "metadata WHERE phash=?1"); QString dbFileName = folder->journalDb()->databaseFilePath(); - if( QFileInfo::exists(dbFileName) ) { + QFileInfo fi(dbFileName); + if( fi.exists(dbFileName) ) { SqlDatabase *db = new SqlDatabase; if( db->open(dbFileName) ) {