Improve torrent name handling

This commit is contained in:
Vladimir Golovnev (Glassez)
2020-12-10 09:42:32 +03:00
parent 7c48ba2f19
commit 77555cd5c2
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