-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DlgPrefEffects: fix preset removed from list when canceling delete #4470
Conversation
Now there's no dialog anymore? Well...we could consider that bug fixed ;) |
Huh? |
I didn't test this, but looking at the diff I think nothing changed w.r.t. showing a dialog. Can you elaborate? |
Neither do I. What I did:
Rebasing onto #4467 doesn't fix it. |
m_pChainPresetManager->deletePreset(selectedPresetName); | ||
if (m_pChainPresetManager->deletePreset(selectedPresetName)) { | ||
focusedChainStringList.removeAll(selectedPresetName); | ||
} | ||
} |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oof... good catch
if (!unfocusedChainStringList.contains(selectedPresetName)) { | ||
m_pChainPresetManager->deletePreset(selectedPresetName); | ||
if (m_pChainPresetManager->deletePreset(selectedPresetName)) { | ||
focusedChainStringList.removeAll(selectedPresetName); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else branch missing?
what happens when the preset is in both lists?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added the missing else branch
LGTM, waiting for the green lights |
fixes https://bugs.launchpad.net/mixxx/+bug/1947922