mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[MetaSearch] clear search results when inspecting CSW in server tab (#37448)
This commit is contained in:
parent
0912bc5d82
commit
0579b20b53
@ -285,6 +285,9 @@ class MetaSearchDialog(QDialog, BASE_CLASS):
|
||||
self.textMetadata.document().setDefaultStyleSheet(style)
|
||||
self.textMetadata.setHtml(metadata)
|
||||
|
||||
# clear results in Search tab
|
||||
self.clear_results()
|
||||
|
||||
def add_connection(self):
|
||||
"""add new service"""
|
||||
|
||||
@ -541,6 +544,11 @@ class MetaSearchDialog(QDialog, BASE_CLASS):
|
||||
self.btnNext.setEnabled(disabled)
|
||||
self.btnLast.setEnabled(disabled)
|
||||
|
||||
def clear_results(self):
|
||||
"""clear search results"""
|
||||
|
||||
self.treeRecords.clear()
|
||||
|
||||
def record_clicked(self):
|
||||
"""record clicked signal"""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user