From 22a05ebc1bb77312dc0e9ace43beefd16e567ddd Mon Sep 17 00:00:00 2001 From: BDisp Date: Sun, 19 Jul 2020 01:17:15 +0100 Subject: [PATCH] Fixes #811. Added a check for the subviews. --- Terminal.Gui/Views/ComboBox.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Terminal.Gui/Views/ComboBox.cs b/Terminal.Gui/Views/ComboBox.cs index ee0a8fffb..696d9e73a 100644 --- a/Terminal.Gui/Views/ComboBox.cs +++ b/Terminal.Gui/Views/ComboBox.cs @@ -429,8 +429,10 @@ namespace Terminal.Gui { listview.SetSource (searchset); listview.Height = CalculatetHeight (); - - this.SetFocus (search); + + if (Subviews.Count > 0) { + SetFocus (search); + } } private void ResetSearchSet (bool noCopy = false)