From 4644b5cb16d1be6a765092386a2db8f96c5b6bee Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Wed, 11 Oct 2017 22:32:31 -0400 Subject: [PATCH] Simplify condition --- src/prefs/ExtImportPrefs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/prefs/ExtImportPrefs.cpp b/src/prefs/ExtImportPrefs.cpp index 80bede526..324c1e2cc 100644 --- a/src/prefs/ExtImportPrefs.cpp +++ b/src/prefs/ExtImportPrefs.cpp @@ -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);