Skip to content
Permalink
Browse files

[provided] avoid removing toolbox entries when there are no recent algs

  • Loading branch information
volaya committed Mar 2, 2017
1 parent b500ab5 commit 1618f539ecea230fddda1f2f7284245240cafccf
Showing with 4 additions and 3 deletions.
  1. +4 −3 python/plugins/processing/gui/ProcessingToolbox.py
@@ -297,9 +297,10 @@ def addRecentAlgorithms(self, updating):
found = False
if updating:
recentItem = self.algorithmTree.topLevelItem(0)
treeWidget = recentItem.treeWidget()
treeWidget.takeTopLevelItem(
treeWidget.indexOfTopLevelItem(recentItem))
if recentItem.text(0) == self.tr('Recently used algorithms'):
treeWidget = recentItem.treeWidget()
treeWidget.takeTopLevelItem(
treeWidget.indexOfTopLevelItem(recentItem))

recentItem = QTreeWidgetItem()
recentItem.setText(0, self.tr('Recently used algorithms'))

0 comments on commit 1618f53

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