Preserve file exec permissions for Mac update #2

This commit is contained in:
Mark Watkins 2011-12-18 16:53:24 +10:00
parent 6f147b2e03
commit 3fd595e58f

View File

@ -11,6 +11,7 @@
#include <QXmlSimpleReader>
#include <QCryptographicHash>
#include <QDesktopWidget>
#include "SleepLib/preferences.h"
#include "quazip/quazip.h"
#include "quazip/quazipfile.h"
@ -372,7 +373,7 @@ void UpdaterWindow::replyFinished(QNetworkReply * reply)
} while (!line.isNull());
} else {
QString fn=files.at(i).section("/",-1);
QFile::Permissions perm=orig.permissions(apppath+fn);
QFile::Permissions perm=QFile::permissions(apppath+fn);
// delete backups
if (f.exists(backups+fn)) f.remove(backups+fn);