|
|
@ -70,8 +70,7 @@ QString UBDesktopServices::storageLocation(StandardLocation type) |
|
|
|
|
|
|
|
|
|
|
|
short domain = kOnAppropriateDisk; |
|
|
|
short domain = kOnAppropriateDisk; |
|
|
|
|
|
|
|
|
|
|
|
if (QDesktopServices::DataLocation == type |
|
|
|
if (QDesktopServices::DataLocation == type || QDesktopServices::CacheLocation == type) |
|
|
|
|| QDesktopServices::CacheLocation == type) |
|
|
|
|
|
|
|
domain = kUserDomain; |
|
|
|
domain = kUserDomain; |
|
|
|
|
|
|
|
|
|
|
|
// http://developer.apple.com/documentation/Carbon/Reference/Folder_Manager/Reference/reference.html
|
|
|
|
// http://developer.apple.com/documentation/Carbon/Reference/Folder_Manager/Reference/reference.html
|
|
|
@ -82,9 +81,8 @@ QString UBDesktopServices::storageLocation(StandardLocation type) |
|
|
|
|
|
|
|
|
|
|
|
QString path = getFullPath(ref); |
|
|
|
QString path = getFullPath(ref); |
|
|
|
|
|
|
|
|
|
|
|
if (QDesktopServices::DataLocation == type |
|
|
|
if (QDesktopServices::DataLocation == type || QDesktopServices::CacheLocation == type) |
|
|
|
|| QDesktopServices::CacheLocation == type) |
|
|
|
path += "/Sankore"; |
|
|
|
path += "/" + QCoreApplication::applicationName(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return path; |
|
|
|
return path; |
|
|
|
} |
|
|
|
} |
|
|
|