mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 15:27:54 +00:00
- Fixes compilation problem regarding hash missing
This commit is contained in:
parent
63761afd0a
commit
1d9b524b77
@ -241,7 +241,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void saveSpeedLimits(QTorrentHandle h) {
|
static void saveSpeedLimits(QTorrentHandle h) {
|
||||||
Q_ASSERT(!hash.isEmpty());
|
Q_ASSERT(!h.hash().isEmpty());
|
||||||
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent-resume"));
|
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent-resume"));
|
||||||
QHash<QString, QVariant> all_data = settings.value("torrents", QHash<QString, QVariant>()).toHash();
|
QHash<QString, QVariant> all_data = settings.value("torrents", QHash<QString, QVariant>()).toHash();
|
||||||
QHash<QString, QVariant> data = all_data[h.hash()].toHash();
|
QHash<QString, QVariant> data = all_data[h.hash()].toHash();
|
||||||
|
Loading…
Reference in New Issue
Block a user