Skip to content
Permalink
Browse files

Don't allow dragging groups in model algorithm tree

  • Loading branch information
nyalldawson committed Aug 22, 2017
1 parent ef89a62 commit b62fd51cc2c4c700ac714bcf159e0d547c00d516
Showing with 2 additions and 0 deletions.
  1. +2 −0 python/plugins/processing/modeler/ModelerDialog.py
@@ -659,6 +659,7 @@ def fillAlgorithmTreeUsingProviders(self):
name = alg.group()
groupItem.setText(0, name)
groupItem.setToolTip(0, name)
groupItem.setFlags(Qt.ItemIsEnabled | Qt.ItemIsSelectable)
if provider.id() in ('qgis', 'native'):
groupItem.setIcon(0, provider.icon())
qgis_groups[alg.group()] = groupItem
@@ -672,6 +673,7 @@ def fillAlgorithmTreeUsingProviders(self):
providerItem.setText(0, provider.name())
providerItem.setToolTip(0, provider.name())
providerItem.setIcon(0, provider.icon())
providerItem.setFlags(Qt.ItemIsEnabled | Qt.ItemIsSelectable)
for groupItem in list(groups.values()):
providerItem.addChild(groupItem)
self.algorithmTree.addTopLevelItem(providerItem)

0 comments on commit b62fd51

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