mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-22 23:48:02 +02:00
Simplify condition
This commit is contained in:
parent
168db87ddf
commit
4644b5cb16
@ -602,7 +602,8 @@ void ExtImportPrefs::OnDelRule(wxCommandEvent& WXUNUSED(event))
|
|||||||
|
|
||||||
int msgres = AudacityMessageBox (_("Do you really want to delete selected rule?"),
|
int msgres = AudacityMessageBox (_("Do you really want to delete selected rule?"),
|
||||||
_("Rule deletion confirmation"), wxYES_NO, RuleTable);
|
_("Rule deletion confirmation"), wxYES_NO, RuleTable);
|
||||||
if (msgres == wxNO || msgres != wxYES)
|
// Yes or no, there is no third!
|
||||||
|
if (msgres != wxYES)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
RuleTable->DeleteRows (last_selected);
|
RuleTable->DeleteRows (last_selected);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user