mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
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.
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user