diff --git a/actions/basic.py b/actions/basic.py index 112a5f4af..6e5d110cc 100644 --- a/actions/basic.py +++ b/actions/basic.py @@ -60,11 +60,11 @@ def basic_filter_selectors(self): self.dlg_selector.rejected.connect(partial( self.save_current_tab, self.dlg_selector, self.dlg_selector.main_tab, 'basic')) - def basic_api_search(self): + def basic_api_search(self, load_project=False): """ Button 143: ApiSearch """ if self.api_search is None: self.api_search = ApiSearch(self.iface, self.settings, self.controller, self.plugin_dir) - self.api_search.api_search(load_project=True) + self.api_search.api_search(load_project=load_project) diff --git a/giswater.py b/giswater.py index 328e14eb4..d883a5b39 100644 --- a/giswater.py +++ b/giswater.py @@ -1004,7 +1004,7 @@ def project_read(self, show_warning=True): # Open automatically 'search docker' depending its value in user settings open_search = self.controller.get_user_setting_value('open_search', 'true') if open_search == 'true': - self.basic.basic_api_search() + self.basic.basic_api_search(load_project=True) # call dynamic mapzones repaint self.parent.set_style_mapzones()