# HG changeset patch # User Paper # Date 1699391177 18000 # Node ID 2c1b6782e1d0799e03256cbf7b9cd797b67387f4 # Parent 254b1d2b7096f11f5551703c31d9af3c6f57f467 pages/torrents: work around conversion error on Linux diff -r 254b1d2b7096 -r 2c1b6782e1d0 src/gui/pages/torrents.cc --- a/src/gui/pages/torrents.cc Tue Nov 07 13:52:13 2023 -0500 +++ b/src/gui/pages/torrents.cc Tue Nov 07 16:06:17 2023 -0500 @@ -196,7 +196,9 @@ case Qt::UserRole: switch (index.column()) { case TL_EPISODE: return Strings::ToInt(item.GetEpisode(), -1); - case TL_SIZE: return item.GetSize(); + /* We have to use this to work around some stupid + "conversion ambiguous" error on Linux */ + case TL_SIZE: return QVariant::fromValue(item.GetSize()); default: return data(index, Qt::DisplayRole); } break;