[processing] don't show tip when user uses search and tip was disabled (fix #14379)

This commit is contained in:
Alexander Bruy 2016-03-09 14:20:48 +02:00
parent a8590135b5
commit 605e0c43fe

View File

@ -113,7 +113,9 @@ class ProcessingToolbox(BASE, WIDGET):
if text in alg.name:
self.disabledWithMatchingAlgs.append(providerName)
break
self.txtDisabled.setVisible(bool(self.disabledWithMatchingAlgs))
showTip = ProcessingConfig.getSetting(ProcessingConfig.SHOW_PROVIDERS_TOOLTIP)
if showTip:
self.txtDisabled.setVisible(bool(self.disabledWithMatchingAlgs))
else:
self.algorithmTree.collapseAll()
self.algorithmTree.invisibleRootItem().child(0).setExpanded(True)