Displaying save path in torrent properties window

This commit is contained in:
Christophe Dumez 2006-10-23 22:36:00 +00:00
parent 1014d8b862
commit d1546d18e6
3 changed files with 41 additions and 2 deletions

View file

@ -42,6 +42,7 @@ properties::properties(QWidget *parent, torrent_handle h, QStringList trackerErr
filesList->setItemDelegate(PropDelegate);
connect(filesList, SIGNAL(doubleClicked(const QModelIndex&)), this, SLOT(toggleSelectedState(const QModelIndex&)));
// get Infos from torrent handle
save_path->setText(QString(h.save_path().string().c_str()));
torrent_status torrentStatus = h.status();
torrent_info torrentInfo = h.get_torrent_info();
fileName->setText(torrentInfo.name().c_str());