From 6cf8a0c8874dc6740898fd932413cfead36c8ae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Tue, 16 Jan 2024 11:37:46 -0500 Subject: [PATCH] [simpleio] Fix invalid iterator next --- .../Protocols/SimpleIO/SimpleIOProtocolSettingsWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/score-plugin-protocols/Protocols/SimpleIO/SimpleIOProtocolSettingsWidget.cpp b/src/plugins/score-plugin-protocols/Protocols/SimpleIO/SimpleIOProtocolSettingsWidget.cpp index 1b601efcdb..f6f45fd053 100644 --- a/src/plugins/score-plugin-protocols/Protocols/SimpleIO/SimpleIOProtocolSettingsWidget.cpp +++ b/src/plugins/score-plugin-protocols/Protocols/SimpleIO/SimpleIOProtocolSettingsWidget.cpp @@ -112,7 +112,7 @@ class SimpleIODatabase : public TreeNodeBasedItemModel QDirIterator iio_it(iio.dir()); while(iio_it.hasNext()) { - const auto voltage = QFileInfo{dir.next()}; + const auto voltage = QFileInfo{iio_it.next()}; auto vname = voltage.fileName(); if(vname.startsWith("in_voltage") && vname.endsWith("_raw")) {