1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-12 07:48:04 +00: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:
Chocobo1 2022-10-09 00:12:35 +08:00
parent 66795d533a
commit aa022400f7
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

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