From 8e24a018ea8bcd01ab8a101b6d8620a72b1a6912 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 1 Nov 2015 00:01:45 +0800 Subject: [PATCH] gui/log: fix filter initialization race condition --- artiq/gui/log.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/artiq/gui/log.py b/artiq/gui/log.py index 819c13d95..f3de6cc19 100644 --- a/artiq/gui/log.py +++ b/artiq/gui/log.py @@ -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):