Skip to content
Permalink
Browse files

[MetaSearch] Also disable buttons after inspecting CSW in server tab

in order to fix "AttributeError: 'CatalogueServiceWeb' object has no attribute 'records'" python error
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Jan 5, 2021
1 parent 1559908 commit fd9b246ac50b4cce31a7a1a743e72fa062d43290
Showing with 4 additions and 5 deletions.
  1. +4 −5 python/plugins/MetaSearch/dialogs/maindialog.py
@@ -285,7 +285,7 @@ def connection_info(self):
self.textMetadata.document().setDefaultStyleSheet(style)
self.textMetadata.setHtml(metadata)

# clear results in Search tab
# clear results and disable buttons in Search tab
self.clear_results()

def add_connection(self):
@@ -433,10 +433,7 @@ def search(self):
self.constraints = []

# clear all fields and disable buttons
self.lblResults.clear()
self.treeRecords.clear()

self.reset_buttons()
self.clear_results()

# save some settings
self.settings.setValue('/MetaSearch/returnRecords',
@@ -547,7 +544,9 @@ def display_results(self):
def clear_results(self):
"""clear search results"""

self.lblResults.clear()
self.treeRecords.clear()
self.reset_buttons()

def record_clicked(self):
"""record clicked signal"""

0 comments on commit fd9b246

Please sign in to comment.
You can’t perform that action at this time.