diff options
Diffstat (limited to 'FreeFileSync/Source/ui/command_box.cpp')
-rw-r--r-- | FreeFileSync/Source/ui/command_box.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FreeFileSync/Source/ui/command_box.cpp b/FreeFileSync/Source/ui/command_box.cpp index c0637b10..2e5407df 100644 --- a/FreeFileSync/Source/ui/command_box.cpp +++ b/FreeFileSync/Source/ui/command_box.cpp @@ -181,7 +181,7 @@ void CommandBox::onKeyEvent(wxKeyEvent& event) //this->SetSelection(wxNOT_FOUND); //delete selected row - std::erase_if(history_, [&](const Zstring& item) { return item == selValue; }); + std::erase(history_, selValue); SetString(pos, wxString()); //in contrast to Delete(), this one does not kill the drop-down list and gives a nice visual feedback! //Delete(pos); |