Skip to content

Commit

Permalink
[sextante] fixed #7295
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Mar 9, 2013
1 parent 4d8e426 commit d83b949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/sextante/gui/SextanteToolbox.py
Expand Up @@ -152,8 +152,8 @@ def fillTree(self):
def addRecentAlgorithms(self):
showRecent = SextanteConfig.getSetting(SextanteConfig.SHOW_RECENT_ALGORITHMS)
if showRecent:
first = self.algorithmTree.topLevelItem(0)
if first.text(0) == "Recently used algorithms":
first = self.algorithmTree.topLevelItem(0)
if first != None and first.text(0) == "Recently used algorithms":
self.algorithmTree.removeItemWidget(first, 0)
recent = SextanteLog.getRecentAlgorithms()
if len(recent) != 0:
Expand Down

0 comments on commit d83b949

Please sign in to comment.