From 8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:07:15 +0200 Subject: 3.7 --- shared/customComboBox.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'shared/customComboBox.cpp') 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(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(); -- cgit