diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index d4db1e3e1..e36c69f36 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -2300,7 +2300,7 @@ bool Session::loadMetadata(const MagnetUri &magnetUri) p.max_connections = maxConnectionsPerTorrent(); p.max_uploads = maxUploadsPerTorrent(); - QString savePath = QString("%1/%2").arg(QDir::tempPath(), hash); + QString savePath = QString("%1/%2").arg(Utils::Fs::tempPath(), hash); p.save_path = Utils::Fs::toNativePath(savePath).toStdString(); // Forced start diff --git a/src/gui/guiiconprovider.cpp b/src/gui/guiiconprovider.cpp index 9072ebe58..b14431b86 100644 --- a/src/gui/guiiconprovider.cpp +++ b/src/gui/guiiconprovider.cpp @@ -37,6 +37,7 @@ #endif #include "base/preferences.h" +#include "base/utils/fs.h" GuiIconProvider::GuiIconProvider(QObject *parent) : IconProvider(parent) @@ -124,7 +125,7 @@ QString GuiIconProvider::getIconPath(const QString &iconId) const { #if (defined(Q_OS_UNIX) && !defined(Q_OS_MAC)) if (m_useSystemTheme) { - QString path = QDir::temp().absoluteFilePath(iconId + ".png"); + QString path = Utils::Fs::tempPath() + iconId + ".png"; if (!QFile::exists(path)) { const QIcon icon = QIcon::fromTheme(iconId); if (!icon.isNull())