diff src/gui/dialog/settings/recognition.cc @ 150:ffa535b6d630

*: avoid usage of std::[pair,tuple] https://arne-mertz.de/2017/03/smelly-pair-tuple/ it's better to use real structures and such where variables are easily known... also apparently using [] on structs is actually valid? I had no idea.
author Paper <mrpapersonic@gmail.com>
date Tue, 14 Nov 2023 16:27:33 -0500
parents e41505d24733
children ff0061e75f0f
line wrap: on
line diff
--- a/src/gui/dialog/settings/recognition.cc	Tue Nov 14 13:40:11 2023 -0500
+++ b/src/gui/dialog/settings/recognition.cc	Tue Nov 14 16:27:33 2023 -0500
@@ -49,7 +49,7 @@
 				if (!item)
 					return;
 				size_t i = item->data(Qt::UserRole).toUInt();
-				players[i].first = item->checkState();
+				players[i].enabled = item->checkState();
 			});
 			/* this is down here because the listwidget state depends on it */
 			connect(checkbox, &QCheckBox::stateChanged, this, [this, listwidget](int state) {