File qtbug-15295-qfiledialog-system-filter-regression.diff of Package libqt4

--- src/gui/dialogs/qfileinfogatherer_p.h
+++ src/gui/dialogs/qfileinfogatherer_p.h
@@ -125,9 +125,11 @@
         qint64 size = -1;
         if (type() == QExtendedInformation::Dir)
             size = 0;
-        if (type() == QExtendedInformation::File)
+        else if (type() == QExtendedInformation::System)
             size = mFileInfo.size();
-        if (!mFileInfo.exists() && !mFileInfo.isSymLink())
+        else if (type() == QExtendedInformation::File)
+            size = mFileInfo.size();
+        else if (!mFileInfo.exists() && !mFileInfo.isSymLink())
             size = -1;
         return size;
     }
openSUSE Build Service is sponsored by