forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 4 additions and 0 deletions

View File

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