# HG changeset patch # User Goffi # Date 1579289255 -3600 # Node ID 328a6cea380291fd6d47ed3889c86a730dae0b27 # Parent 3018d153a61544cf5667b617f1b8400ff2424b84 quick frontend (widgets): don't use *args for onDelete + more debug logs diff -r 3018d153a615 -r 328a6cea3802 sat_frontends/quick_frontend/quick_widgets.py --- a/sat_frontends/quick_frontend/quick_widgets.py Fri Jan 17 18:47:02 2020 +0100 +++ b/sat_frontends/quick_frontend/quick_widgets.py Fri Jan 17 20:27:35 2020 +0100 @@ -286,10 +286,13 @@ if all_instances: for w in self.getWidgetInstances(widget_to_delete): - if w.onDelete(*args, **kwargs) == False: + if w.onDelete(**kwargs) == False: + log.debug( + f"Deletion of {widget_to_delete} cancelled by widget itself") return else: - if widget_to_delete.onDelete(*args, **kwargs) == False: + if widget_to_delete.onDelete(**kwargs) == False: + log.debug(f"Deletion of {widget_to_delete} cancelled by widget itself") return if self.host.selected_widget == widget_to_delete: