mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
- Torrents can be renamed in transfer list
This commit is contained in:
parent
add2475700
commit
7bac95c9ad
6 changed files with 49 additions and 3 deletions
|
@ -36,6 +36,7 @@
|
|||
#include <math.h>
|
||||
#include "misc.h"
|
||||
#include "qtorrenthandle.h"
|
||||
#include "torrentpersistentdata.h"
|
||||
#include <libtorrent/magnet_uri.hpp>
|
||||
#include <libtorrent/torrent_info.hpp>
|
||||
|
||||
|
@ -62,7 +63,11 @@ QString QTorrentHandle::hash() const {
|
|||
|
||||
QString QTorrentHandle::name() const {
|
||||
Q_ASSERT(h.is_valid());
|
||||
return misc::toQString(h.name());
|
||||
QString name = TorrentPersistentData::getName(hash());
|
||||
if(name.isEmpty()) {
|
||||
name = misc::toQString(h.name());
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
QString QTorrentHandle::creation_date() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue