- Torrents can be renamed in transfer list

This commit is contained in:
Christophe Dumez
2010-01-01 13:25:59 +00:00
parent add2475700
commit 7bac95c9ad
6 changed files with 49 additions and 3 deletions

View File

@@ -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 {