Improve torrent name handling

This commit is contained in:
Vladimir Golovnev (Glassez)
2020-12-10 09:42:32 +03:00
committed by sledgehammer999
parent 78859415d6
commit b8f1142abe
3 changed files with 9 additions and 13 deletions

View File

@@ -170,7 +170,7 @@ InfoHash TorrentInfo::hash() const
QString TorrentInfo::name() const
{
if (!isValid()) return {};
return QString::fromStdString(m_nativeInfo->name());
return QString::fromStdString(m_nativeInfo->orig_files().name());
}
QDateTime TorrentInfo::creationDate() const