Skip to content

Commit

Permalink
Don't allow dragging groups in model algorithm tree
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 22, 2017
1 parent ef89a62 commit b62fd51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/modeler/ModelerDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit b62fd51

Please sign in to comment.