From 88774144bf4af9c6fbe5f46ffbf23965f41363f2 Mon Sep 17 00:00:00 2001 From: Marko Mecina <marko.mecina@univie.ac.at> Date: Tue, 16 Nov 2021 13:41:21 +0100 Subject: [PATCH] TST: from step widgets, don't send empty strings to CCS editor --- Tst/tst/view.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tst/tst/view.py b/Tst/tst/view.py index d561926..22438eb 100644 --- a/Tst/tst/view.py +++ b/Tst/tst/view.py @@ -1311,6 +1311,10 @@ class StepWidget(Gtk.EventBox): return commands = str(self.get_commands_from_widget()) + + if len(commands) == 0: + return + ed = cfl.dbus_connection('editor') cfl.Functions(ed, '_to_console_via_socket', commands) -- GitLab