QTfrontend/util/FileEngine.cpp
branchphysfslayer
changeset 7931 5a27ed7f17b7
parent 7770 ff3442338882
child 7955 85b3970b402a
--- a/QTfrontend/util/FileEngine.cpp	Sat Nov 03 00:34:35 2012 +0400
+++ b/QTfrontend/util/FileEngine.cpp	Sun Nov 04 23:56:27 2012 +0400
@@ -167,10 +167,12 @@
         _filename = file.mid(FileEngineHandler::scheme.size());
     else
         _filename = file;
+
     PHYSFS_Stat stat;
     if (PHYSFS_stat(_filename.toUtf8().constData(), &stat) != 0) {
         _size = stat.filesize;
         _datetime = QDateTime::fromTime_t(stat.modtime);
+        _flags |= QAbstractFileEngine::ReadUserPerm;
         _flags |= QAbstractFileEngine::ExistsFlag;
 
         switch (stat.filetype)