From e7aa81863a6d00436869da532fcffdeabf6d78b0 Mon Sep 17 00:00:00 2001 From: Brian Cipriano Date: Thu, 21 May 2020 17:24:10 -0700 Subject: [PATCH] Fix bug with host search where search text would be ignored. --- cuegui/cuegui/HostMonitor.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cuegui/cuegui/HostMonitor.py b/cuegui/cuegui/HostMonitor.py index 1b866ff35..6d22b988e 100644 --- a/cuegui/cuegui/HostMonitor.py +++ b/cuegui/cuegui/HostMonitor.py @@ -105,12 +105,13 @@ def __filterByHostNameSetup(self, layout): def __filterByHostNameHandle(self): regex = str(self.__filterByHostName.text()).split() - if regex and regex != self.__filterByHostNameLastInput: - self.__filterByHostNameLastInput = regex + if regex: self.hostMonitorTree.hostSearch.options['regex'] = regex else: self.hostMonitorTree.hostSearch.options['regex'] = [] - self.hostMonitorTree.updateRequest() + if regex != self.__filterByHostNameLastInput: + self.__filterByHostNameLastInput = regex + self.hostMonitorTree.updateRequest() def __filterByHostNameClear(self): self.__filterByHostNameLastInput = ""