mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 14:05:58 +03:00
SocketApi: Instanziate Object to call QFileInfo::exists
QFileInfo on Qt4 does not have static members.
This commit is contained in:
parent
53b3e5af1b
commit
2f20f3c65d
1 changed files with 2 additions and 1 deletions
|
@ -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) ) {
|
||||
|
|
Loading…
Reference in a new issue