File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
python/plugins/sextante/gui Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ def executeAlgorithm(self):
134
134
if dlg .executed :
135
135
showRecent = SextanteConfig .getSetting (SextanteConfig .SHOW_RECENT_ALGORITHMS )
136
136
if showRecent :
137
- self .addRecentAlgorithms ()
137
+ self .addRecentAlgorithms (True )
138
138
if isinstance (item , TreeActionItem ):
139
139
action = item .action
140
140
action .setData (self )
@@ -147,13 +147,13 @@ def fillTree(self):
147
147
else :
148
148
self .fillTreeUsingProviders ()
149
149
self .algorithmTree .sortItems (0 , Qt .AscendingOrder )
150
- self .addRecentAlgorithms ()
150
+ self .addRecentAlgorithms (False )
151
151
152
- def addRecentAlgorithms (self ):
152
+ def addRecentAlgorithms (self , updating ):
153
153
showRecent = SextanteConfig .getSetting (SextanteConfig .SHOW_RECENT_ALGORITHMS )
154
154
if showRecent :
155
155
first = self .algorithmTree .topLevelItem (0 )
156
- if first != None and first . text ( 0 ) == "Recently used algorithms" :
156
+ if updating :
157
157
self .algorithmTree .removeItemWidget (first , 0 )
158
158
recent = SextanteLog .getRecentAlgorithms ()
159
159
if len (recent ) != 0 :
You can’t perform that action at this time.
0 commit comments