From 731a78b2f2246f3dcb38fdc3a80ea263aac04268 Mon Sep 17 00:00:00 2001 From: alfrix Date: Mon, 14 Nov 2022 05:25:57 -0300 Subject: [PATCH] ws_cb: first check if there are panels --- screen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen.py b/screen.py index 4ee7881a..d6466915 100644 --- a/screen.py +++ b/screen.py @@ -882,7 +882,7 @@ class KlipperScreen(Gtk.Window): ) self.base_panel.process_update(action, data) - if self._cur_panels[-1] in self.subscriptions: + if self._cur_panels and self._cur_panels[-1] in self.subscriptions: self.panels[self._cur_panels[-1]].process_update(action, data) def _confirm_send_action(self, widget, text, method, params=None):