2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

gui/log: fix filter initialization race condition

This commit is contained in:
Sebastien Bourdeauducq 2015-11-01 00:01:45 +08:00
parent f57145c4f3
commit 8e24a018ea

View File

@ -191,10 +191,14 @@ class LogDock(dockarea.Dock):
await self.subscriber.close()
def filter_level_changed(self):
if not hasattr(self, "table_model_filter"):
return
self.table_model_filter.set_min_level(
getattr(logging, self.filter_level.currentText()))
def filter_freetext_changed(self):
if not hasattr(self, "table_model_filter"):
return
self.table_model_filter.set_freetext(self.filter_freetext.text())
def rows_inserted_before(self):