From 1f2c3356ac4947315f8869e93dd42f09c96672b0 Mon Sep 17 00:00:00 2001 From: signedav Date: Fri, 8 Mar 2024 22:21:57 +0100 Subject: [PATCH] this lambda leads to a slight delay what brings up a python error on close, because the Dialog is not existing anymore. Anyway, we don't need it like this. We can pass the rows-parameter from the signal to the function and use it as boolean. --- QgisModelBaker/gui/workflow_wizard/project_creation_page.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/QgisModelBaker/gui/workflow_wizard/project_creation_page.py b/QgisModelBaker/gui/workflow_wizard/project_creation_page.py index 6d97cb607..11f613767 100644 --- a/QgisModelBaker/gui/workflow_wizard/project_creation_page.py +++ b/QgisModelBaker/gui/workflow_wizard/project_creation_page.py @@ -164,9 +164,7 @@ def _use_existing(self, state): ) # wait before activating until end of refreshment self.workflow_wizard.busy(self, True, self.tr("Refresh repository data...")) - self.ilitoppingcache.model_refreshed.connect( - lambda: self._enable_topping_selection(True) - ) + self.ilitoppingcache.model_refreshed.connect(self._enable_topping_selection) self.ilitoppingcache.refresh() completer = QCompleter(