Browse Source

Use Path internal representation for internal value in model

The internal value is used for sorting comparisons and not displayed
to the user, so make a shortcut.
adaptive-webui-19844
Chocobo1 2 years ago
parent
commit
aa022400f7
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/gui/transferlistmodel.cpp

2
src/gui/transferlistmodel.cpp

@ -511,7 +511,7 @@ QVariant TransferListModel::internalValue(const BitTorrent::Torrent *torrent, co
case TR_DOWNLOAD_PATH: case TR_DOWNLOAD_PATH:
return torrent->downloadPath().data(); return torrent->downloadPath().data();
case TR_SAVE_PATH: case TR_SAVE_PATH:
return torrent->savePath().toString(); return torrent->savePath().data();
case TR_COMPLETED: case TR_COMPLETED:
return torrent->completedSize(); return torrent->completedSize();
case TR_RATIO_LIMIT: case TR_RATIO_LIMIT:

Loading…
Cancel
Save