[Pkg-owncloud-commits] [owncloud-client] 131/211: SocketApi: Instanziate Object to call QFileInfo::exists

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Oct 25 09:10:37 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 2f20f3c65de8bfb1bf67a78f37f12e26750c2930
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Mon Oct 20 17:05:14 2014 +0200

    SocketApi: Instanziate Object to call QFileInfo::exists
    
    QFileInfo on Qt4 does not have static members.
---
 src/mirall/socketapi.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mirall/socketapi.cpp b/src/mirall/socketapi.cpp
index ad7d08d..bd9a172 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) ) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list