From 9d274203e82365b958410147096aacc30cb9d3b0 Mon Sep 17 00:00:00 2001 From: SeongGino Date: Mon, 30 Dec 2024 11:19:56 -0500 Subject: [PATCH] The Qt 6.8 curse strikes again --- src/neroprefixsettings.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/neroprefixsettings.cpp b/src/neroprefixsettings.cpp index dc76590..9ae8e60 100644 --- a/src/neroprefixsettings.cpp +++ b/src/neroprefixsettings.cpp @@ -483,7 +483,12 @@ void NeroPrefixSettingsWindow::dll_delete_clicked() { int slot = sender()->property("slot").toInt(); - dllOverrides.remove(dllSetting.at(slot)->text().left(dllSetting.at(slot)->text().indexOf('[')-1).trimmed()); + QString dllToRemove = dllSetting.at(slot)->text().left(dllSetting.at(slot)->text().indexOf('[')-1).trimmed(); +#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0) +// workaround annoying as fuck anpersand being needlessly implicitly added to widget texts in Qt 6.8 + dllToRemove.remove('&'); +#endif + dllOverrides.remove(dllToRemove); delete dllSetting.at(slot); delete dllDelete.at(slot); dllSetting[slot] = nullptr;