From 3fd595e58fc8abde5a3c504eff67f17aec57a22e Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sun, 18 Dec 2011 16:53:24 +1000 Subject: [PATCH] Preserve file exec permissions for Mac update #2 --- UpdaterWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UpdaterWindow.cpp b/UpdaterWindow.cpp index 96fecbb6..65d3efb1 100644 --- a/UpdaterWindow.cpp +++ b/UpdaterWindow.cpp @@ -11,6 +11,7 @@ #include #include #include + #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);