Skip to content

Commit d83b949

Browse files
committed
[sextante] fixed #7295
1 parent 4d8e426 commit d83b949

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/sextante/gui/SextanteToolbox.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ def fillTree(self):
152152
def addRecentAlgorithms(self):
153153
showRecent = SextanteConfig.getSetting(SextanteConfig.SHOW_RECENT_ALGORITHMS)
154154
if showRecent:
155-
first = self.algorithmTree.topLevelItem(0)
156-
if first.text(0) == "Recently used algorithms":
155+
first = self.algorithmTree.topLevelItem(0)
156+
if first != None and first.text(0) == "Recently used algorithms":
157157
self.algorithmTree.removeItemWidget(first, 0)
158158
recent = SextanteLog.getRecentAlgorithms()
159159
if len(recent) != 0:

0 commit comments

Comments
 (0)