summaryrefslogtreecommitdiff
path: root/portato/gui/windows/main.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-07-28 22:07:16 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-07-28 22:07:16 +0200
commit4e2dd870b22419e6f24fc7a4ad38e8bd42cc56d8 (patch)
tree4e236927dc2717577d22f96f4dbc28baccda19de /portato/gui/windows/main.py
parentea1b27e48a607324270b90f9c54e032fe349100d (diff)
downloadportato-4e2dd870b22419e6f24fc7a4ad38e8bd42cc56d8.tar.gz
portato-4e2dd870b22419e6f24fc7a4ad38e8bd42cc56d8.tar.bz2
portato-4e2dd870b22419e6f24fc7a4ad38e8bd42cc56d8.zip
Disable '--oneshot' button if senseless
Diffstat (limited to 'portato/gui/windows/main.py')
-rw-r--r--portato/gui/windows/main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py
index c50940a..1b7c0f0 100644
--- a/portato/gui/windows/main.py
+++ b/portato/gui/windows/main.py
@@ -1279,11 +1279,14 @@ class MainWindow (Window):
store, it = selection.get_selected()
if it:
- if self.queueTree.is_in_emerge(it) and self.queueTree.iter_has_parent(it):
+ parent = self.queueTree.parent_iter(it)
+ if self.queueTree.is_in_emerge(it) and parent and not self.queueTree.iter_has_parent(parent):
package = store.get_value(it, 0)
+ self.queueOneshot.set_sensitive(True)
set_val(package in self.queue.oneshotmerge)
return True
+ self.queueOneshot.set_sensitive(False)
set_val(False)
return True
'5' class='logmsg'> "dev-vcs/git" to follow new Gentoo portage tree modifications 2010-04-14Make some useless info messages being debug statementsRené 'Necoro' Neumann2-34/+17 2010-04-14Improve the C modulesRené 'Necoro' Neumann3-37/+52 2010-04-14Small modifications made to the French translation (typos, grammar).Clement Bourgeois1-69/+69 2010-04-14Fixed the unicode support and stuff ... and also made eix faster :)René 'Necoro' Neumann1-20/+22 2010-04-14Disable debug messages by defaultRené 'Necoro' Neumann1-1/+1 2010-04-13Better eix error inheritance and handlingRené 'Necoro' Neumann1-2/+9 2010-04-13Fix the handling of FilterSets. Fixes bug #558887.René 'Necoro' Neumann2-56/+64 Now FilterSets are a subclass of InstalledSet. And return only these packages, which are installed ... but then all of them. 2010-04-12Updated newsRené 'Necoro' Neumann1-0/+1 2010-04-13Added my name to translators list.Clement Bourgeois1-0/+1