SocketApi: Instanziate Object to call QFileInfo::exists

QFileInfo on Qt4 does not have static members.
This commit is contained in:
Klaas Freitag 2014-10-20 17:05:14 +02:00
parent 53b3e5af1b
commit 2f20f3c65d

View file

@ -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) ) {