diff options
Diffstat (limited to 'shared/customComboBox.cpp')
-rw-r--r-- | shared/customComboBox.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/shared/customComboBox.cpp b/shared/customComboBox.cpp index 722683a5..c27ce505 100644 --- a/shared/customComboBox.cpp +++ b/shared/customComboBox.cpp @@ -32,9 +32,8 @@ void CustomComboBox::OnKeyEvent(wxKeyEvent& event) //try to delete the currently selected config history item const int selectedItem = this->GetCurrentSelection(); if (0 <= selectedItem && selectedItem < static_cast<int>(this->GetCount()) && - (GetValue() != GetString(selectedItem) || //avoid problems when letter shall be deleted instead of list item - GetValue() == wxEmptyString) //exception: always allow removing empty entry - ) + (GetValue() != GetString(selectedItem) || //avoid problems when a character shall be deleted instead of list item + GetValue() == wxEmptyString)) //exception: always allow removing empty entry { //save old (selected) value: deletion seems to have influence on this const wxString currentVal = this->GetValue(); |