summaryrefslogtreecommitdiff
path: root/portato/gui/gui_helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'portato/gui/gui_helper.py')
-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)