- make custom icons copied from resource writable
This commit is contained in:
parent
f52992aaab
commit
15c6282c36
|
@ -10,7 +10,7 @@ isEmpty(APP_NAME) {
|
|||
}
|
||||
|
||||
isEmpty(APP_VERSION) {
|
||||
APP_VERSION=0.13.4
|
||||
APP_VERSION=0.14.0
|
||||
}
|
||||
|
||||
isEmpty(PREFIX) {
|
||||
|
|
|
@ -1131,6 +1131,13 @@ void copyFolder(const QString &fromDir, const QString &toDir)
|
|||
//Remove file at target location, if it exists, or QFile::copy will fail
|
||||
QFile::remove(constructedAbsolutePath);
|
||||
QFile::copy(fileInfo.absoluteFilePath(), constructedAbsolutePath);
|
||||
QFile newFile(constructedAbsolutePath);
|
||||
QFile::Permissions permissions = newFile.permissions();
|
||||
permissions |= (QFile::Permission::WriteOwner
|
||||
| QFile::Permission::WriteUser
|
||||
| QFile::Permission::WriteGroup
|
||||
| QFile::Permission::WriteOther);
|
||||
newFile.setPermissions(permissions);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ SUBDIRS += \
|
|||
|
||||
APP_NAME = RedPandaCPP
|
||||
|
||||
APP_VERSION = 0.13.4
|
||||
APP_VERSION = 0.14.0
|
||||
|
||||
linux: {
|
||||
|
||||
|
|
Loading…
Reference in New Issue