summaryrefslogtreecommitdiff
path: root/portato/gui/gui_helper.py
diff options
context:
space:
mode:
authorNecoro <>2008-01-28 19:43:34 +0000
committerNecoro <>2008-01-28 19:43:34 +0000
commitc2259ceb0b211c148dab20ac484509d24b791bae (patch)
tree739c74b4b942ce569eeba89cb605854f62330f4a /portato/gui/gui_helper.py
parent43bb555d0925f447a89b0e3559d63704e4bafea0 (diff)
downloadportato-c2259ceb0b211c148dab20ac484509d24b791bae.tar.gz
portato-c2259ceb0b211c148dab20ac484509d24b791bae.tar.bz2
portato-c2259ceb0b211c148dab20ac484509d24b791bae.zip
From 0.9.0 branch.
Diffstat (limited to '')
-rw-r--r--portato/gui/gui_helper.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/portato/gui/gui_helper.py b/portato/gui/gui_helper.py
index c6e6247..91a460f 100644
--- a/portato/gui/gui_helper.py
+++ b/portato/gui/gui_helper.py
@@ -506,7 +506,7 @@ class EmergeQueue:
self.process = Popen(command+options+packages, shell = False, env = system.get_environment(), preexec_fn = pre)
# remove packages from queue
- if self.tree and it:
+ if self.tree and it and not self.tree.is_in_unmerge(top):
self.up = Updater(self, it, self.threadClass)
else:
self.up = None
@@ -528,6 +528,8 @@ class EmergeQueue:
self.tree.set_in_progress(top, False)
else:
self.remove(top)
+ elif self.tree and it:
+ self.remove_with_children(top)
if self.title_update: self.title_update(None)