mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Windows execution fixes
This commit is contained in:
parent
58a36f7cfd
commit
338d4fd31e
11 changed files with 164 additions and 53 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue