1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-24 16:20:05 +02:00

Simplify condition

This commit is contained in:
Paul Licameli 2017-10-11 22:32:31 -04:00
parent 168db87ddf
commit 4644b5cb16

View File

@ -602,7 +602,8 @@ void ExtImportPrefs::OnDelRule(wxCommandEvent& WXUNUSED(event))
int msgres = AudacityMessageBox (_("Do you really want to delete selected rule?"),
_("Rule deletion confirmation"), wxYES_NO, RuleTable);
if (msgres == wxNO || msgres != wxYES)
// Yes or no, there is no third!
if (msgres != wxYES)
return;
RuleTable->DeleteRows (last_selected);