mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
Windows execution fixes
This commit is contained in:
@@ -74,6 +74,9 @@ QString misc::QDesktopServicesDataLocation() {
|
||||
result = QString::fromWCharArray(path);
|
||||
if (!QCoreApplication::applicationName().isEmpty())
|
||||
result = result + QLatin1String("\\") + qApp->applicationName();
|
||||
if(!result.endsWith("\\"))
|
||||
result += "\\";
|
||||
return result;
|
||||
#else
|
||||
#ifdef Q_WS_MAC
|
||||
// http://developer.apple.com/documentation/Carbon/Reference/Folder_Manager/Reference/reference.html
|
||||
@@ -360,7 +363,7 @@ QString misc::BTBackupLocation() {
|
||||
}
|
||||
|
||||
QString misc::cacheLocation() {
|
||||
const QString &location = QDir::cleanPath(QDesktopServicesCacheLocation());
|
||||
QString location = QDir::cleanPath(QDesktopServicesCacheLocation());
|
||||
QDir locationDir(location);
|
||||
if(!locationDir.exists())
|
||||
locationDir.mkpath(locationDir.absolutePath());
|
||||
|
||||
Reference in New Issue
Block a user