From aa022400f7f3a17e12751bb458afbe1bf22c9875 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 9 Oct 2022 00:12:35 +0800 Subject: [PATCH] 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. --- src/gui/transferlistmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/transferlistmodel.cpp b/src/gui/transferlistmodel.cpp index 05a3b2118..d2d41e6dd 100644 --- a/src/gui/transferlistmodel.cpp +++ b/src/gui/transferlistmodel.cpp @@ -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: