Browse Source

Use `rootPath()` in save path field

adaptive-webui-19844
Chocobo1 10 years ago
parent
commit
030dd9eed8
  1. 2
      src/gui/properties/propertieswidget.cpp
  2. 2
      src/gui/torrentmodel.cpp

2
src/gui/properties/propertieswidget.cpp

@ -252,7 +252,7 @@ BitTorrent::TorrentHandle *PropertiesWidget::getCurrentTorrent() const @@ -252,7 +252,7 @@ BitTorrent::TorrentHandle *PropertiesWidget::getCurrentTorrent() const
void PropertiesWidget::updateSavePath(BitTorrent::TorrentHandle *const torrent)
{
if (m_torrent == torrent) {
save_path->setText(m_torrent->savePathParsed());
save_path->setText(m_torrent->rootPath());
}
}

2
src/gui/torrentmodel.cpp

@ -221,7 +221,7 @@ QVariant TorrentModel::data(const QModelIndex &index, int role) const @@ -221,7 +221,7 @@ QVariant TorrentModel::data(const QModelIndex &index, int role) const
case TR_TIME_ELAPSED:
return (role == Qt::DisplayRole) ? torrent->activeTime() : torrent->seedingTime();
case TR_SAVE_PATH:
return torrent->savePathParsed();
return torrent->rootPath();
case TR_COMPLETED:
return torrent->completedSize();
case TR_RATIO_LIMIT:

Loading…
Cancel
Save