mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Keep "torrent info" alive while generate .torrent file
This commit is contained in:
committed by
Vladimir Golovnev
parent
d7fd576293
commit
5ffa7e4752
@@ -140,7 +140,7 @@ nonstd::expected<void, QString> TorrentInfo::saveToFile(const QString &path) con
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
const auto torrentCreator = lt::create_torrent(*nativeInfo());
|
const auto torrentCreator = lt::create_torrent(*m_nativeInfo);
|
||||||
const lt::entry torrentEntry = torrentCreator.generate();
|
const lt::entry torrentEntry = torrentCreator.generate();
|
||||||
const nonstd::expected<void, QString> result = Utils::IO::saveToFile(path, torrentEntry);
|
const nonstd::expected<void, QString> result = Utils::IO::saveToFile(path, torrentEntry);
|
||||||
if (!result)
|
if (!result)
|
||||||
|
|||||||
Reference in New Issue
Block a user