mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-09 00:52:30 -06:00
Merge pull request #9268 from Chocobo1/clean
Put temporary files in qbt own temp folder and cleanups
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -29,8 +29,6 @@
|
||||
|
||||
#include "iconprovider.h"
|
||||
|
||||
#include <QString>
|
||||
|
||||
IconProvider::IconProvider(QObject *parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
@@ -57,7 +55,7 @@ IconProvider *IconProvider::instance()
|
||||
return m_instance;
|
||||
}
|
||||
|
||||
QString IconProvider::getIconPath(const QString &iconId)
|
||||
QString IconProvider::getIconPath(const QString &iconId) const
|
||||
{
|
||||
return ":/icons/qbt-theme/" + iconId + ".png";
|
||||
}
|
||||
|
||||
@@ -31,8 +31,7 @@
|
||||
#define ICONPROVIDER_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class QString;
|
||||
#include <QString>
|
||||
|
||||
class IconProvider : public QObject
|
||||
{
|
||||
@@ -43,7 +42,7 @@ public:
|
||||
static void freeInstance();
|
||||
static IconProvider *instance();
|
||||
|
||||
virtual QString getIconPath(const QString &iconId);
|
||||
virtual QString getIconPath(const QString &iconId) const;
|
||||
|
||||
protected:
|
||||
explicit IconProvider(QObject *parent = nullptr);
|
||||
|
||||
Reference in New Issue
Block a user