From 0579b20b5352e69a9aabd1bb35757424eb937a92 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Sun, 12 Jul 2020 08:03:32 -0400 Subject: [PATCH] [MetaSearch] clear search results when inspecting CSW in server tab (#37448) --- python/plugins/MetaSearch/dialogs/maindialog.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python/plugins/MetaSearch/dialogs/maindialog.py b/python/plugins/MetaSearch/dialogs/maindialog.py index 49c6502327f..1c3ccbf0313 100644 --- a/python/plugins/MetaSearch/dialogs/maindialog.py +++ b/python/plugins/MetaSearch/dialogs/maindialog.py @@ -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"""