diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/screens_panel.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wx/screens_panel.cc b/src/wx/screens_panel.cc index b7defe0e9..1d94d1acb 100644 --- a/src/wx/screens_panel.cc +++ b/src/wx/screens_panel.cc @@ -249,7 +249,12 @@ ScreensPanel::add_cinema_clicked () wxTreeListItem previous = wxTLI_FIRST; bool found = false; + auto search = wx_to_std(_search->GetValue()); + convert_to_lower(search); for (auto existing_cinema: cinemas) { + if (!matches_search(existing_cinema, search)) { + continue; + } if (_collator.compare(dialog->name(), existing_cinema->name) < 0) { /* existing_cinema should be after the one we're inserting */ found = true; |
