BUGFIX: Fix magnet torrent name update problem

This commit is contained in:
Christophe Dumez
2011-01-10 17:36:17 +00:00
parent 514f82a3c9
commit 1299e75934
3 changed files with 8 additions and 1 deletions

View File

@@ -142,7 +142,7 @@ QVariant TorrentModelItem::data(int column, int role) const
if(role != Qt::DisplayRole && role != Qt::UserRole) return QVariant();
switch(column) {
case TR_NAME:
return m_name;
return m_name.isEmpty()? m_torrent.name() : m_name;
case TR_PRIORITY:
return m_torrent.queue_position();
case TR_SIZE: