diff options
| author | glatzor@ubuntu.com <> | 2006-09-11 19:38:20 +0200 |
|---|---|---|
| committer | glatzor@ubuntu.com <> | 2006-09-11 19:38:20 +0200 |
| commit | cb5c5cca3e6d5b90018a2dc49b77d61dede3628c (patch) | |
| tree | c982b8dfe797384cf62e93f37b479f2c89665707 | |
| parent | b83afc695eb3d983d694ad9b8c9bad7a469b5a80 (diff) | |
| download | python-apt-cb5c5cca3e6d5b90018a2dc49b77d61dede3628c.tar.gz | |
* do not allow to toggle deactivated updates by row activation
| -rw-r--r-- | UpdateManager/UpdateManager.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index af1ec6c3..5d6518b1 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -732,9 +732,13 @@ class UpdateManager(SimpleGladeApp): def toggled(self, renderer, path): """ a toggle button in the listview was toggled """ - self.setBusy(True) iter = self.store.get_iter(path) pkg = self.store.get_value(iter, LIST_PKG) + # make sure that we don't allow to toggle deactivated updates + # this is needed for the call by the row activation callback + if pkg.name in self.list.held_back: + return False + self.setBusy(True) # update the cache if pkg.markedInstall or pkg.markedUpgrade: pkg.markKeep() |
