Fix error when adding disabled plugin based processing providers

This commit is contained in:
Nyall Dawson 2017-09-04 11:16:17 +10:00
parent 85e6a63328
commit fadfb3562a

View File

@ -430,7 +430,7 @@ class ProcessingToolbox(BASE, WIDGET):
label = QLabel(text + "&nbsp;&nbsp;&nbsp;&nbsp;<a href='%s'>Activate</a>")
label.setStyleSheet("QLabel {background-color: white; color: grey;}")
label.linkActivated.connect(activateProvider)
self.algorithmTree.setItemWidget(item, 0, label)
self.algorithmTree.setItemWidget(parent, 0, label)
else:
text += QCoreApplication.translate("TreeProviderItem", " [{0} geoalgorithms]").format(count)