Fixed some really old issues in testsearch dialog
@@ -162,6 +162,7 @@ class TestsDialog(Dialog):
line1.Add(add_to_selection_button)
panel.Sizer.Add(line1, 0, wx.ALL, 3)
panel.Sizer.Add(self._add_info_text(panel, "Find matches by test name, documentation and/or tag."), 0, wx.ALL, 3)
+ panel.Sizer.Layout()
def _horizontal_sizer(self):
return wx.BoxSizer(wx.HORIZONTAL)
@@ -177,6 +178,7 @@ class TestsDialog(Dialog):
sizer.Add(self._search_control, 0, wx.ALL, 3)
def _select_text_search_result(self, idx):
+ if idx != -1:
for listener in self._selection_listeners:
listener(self.tests[idx])
