diff src/gui/pages/torrents.cc @ 117:2c1b6782e1d0

pages/torrents: work around conversion error on Linux
author Paper <mrpapersonic@gmail.com>
date Tue, 07 Nov 2023 16:06:17 -0500
parents 254b1d2b7096
children 39521c47c7a3
line wrap: on
line diff
--- 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;