Skip to content

Commit

Permalink
Merge branch 'main' into cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
SeongGino committed Dec 30, 2024
2 parents b1e260f + 9d27420 commit 2db8e12
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/neroprefixsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2db8e12

Please sign in to comment.