Changeset 437f9ffbd168…
Parent d38af8bd2e69…
by
Changes to one file · Browse files at 437f9ffbd168 Showing diff from parent d38af8bd2e69 Diff from another changeset...
@@ -476,12 +476,14 @@ if maxidx < idx:
maxidx = idx
- # find index of first unapplied patch in TreeView
+ # find index of first unapplied patch after last applied one in TreeView
+ uminidx = None
for i, row in enumerate(model):
- if self.is_unapplied(row[MQ_NAME]):
+ if uminidx is None and self.is_unapplied(row[MQ_NAME]):
uminidx = i
- break
- else:
+ elif self.is_applied(row[MQ_NAME]):
+ uminidx = None
+ if uminidx is None:
return False
# check whether operation is possible
|
Loading...