diff --git a/src/base/bittorrent/infohash.cpp b/src/base/bittorrent/infohash.cpp index b492fcb44..293e650fe 100644 --- a/src/base/bittorrent/infohash.cpp +++ b/src/base/bittorrent/infohash.cpp @@ -68,7 +68,6 @@ bool InfoHash::isValid() const return m_valid; } - InfoHash::operator libtorrent::sha1_hash() const { return m_nativeHash; diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index c7d5b571a..831af3fb4 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -333,7 +333,9 @@ QString Session::tempPath() const QString Session::torrentTempPath(const InfoHash &hash) const { - return m_tempPath + QString(hash) + "/"; + return m_tempPath + + static_cast(hash).left(7) + + "/"; } bool Session::isValidCategoryName(const QString &name)