mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
change permissions of the final directory in QStandardPaths::writableLocation()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e4a1687a6d
commit
2a347b7421
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ QString QStandardPaths::writableLocation(StandardLocation type)
|
|||
QDir locationdir(location);
|
||||
const QString locationdirname(locationdir.dirName());
|
||||
if (locationdir.cdUp() && locationdir.mkdir(locationdirname)) {
|
||||
QFile locationfile(locationdir.path());
|
||||
QFile locationfile(location);
|
||||
if (locationfile.setPermissions(QFile::ReadUser | QFile::WriteUser | QFile::ExeUser)) {
|
||||
return location;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue