From 21c51476568bd092573c5da35372ea19076e808c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Moreira?= Date: Mon, 18 May 2020 19:05:50 -0300 Subject: [PATCH] [fix][ui] upgrade action not respecting packages with ignored updates --- bauh/view/qt/thread.py | 2 +- bauh/view/qt/window.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bauh/view/qt/thread.py b/bauh/view/qt/thread.py index 32b8c62f..d107602f 100644 --- a/bauh/view/qt/thread.py +++ b/bauh/view/qt/thread.py @@ -364,7 +364,7 @@ class UpgradeSelected(AsyncAction): self.pkgs = None return - to_update = [pkg for pkg in self.pkgs if pkg.model.update and pkg.update_checked] + to_update = [pkg for pkg in self.pkgs if pkg.model.update and not pkg.model.is_update_ignored() and pkg.update_checked] if len(to_update) > 1: self.disable_progress_controll() diff --git a/bauh/view/qt/window.py b/bauh/view/qt/window.py index ca76e1e8..fd50b374 100755 --- a/bauh/view/qt/window.py +++ b/bauh/view/qt/window.py @@ -1273,6 +1273,12 @@ class ManageWindow(QWidget): if res['success']: if self.ref_checkbox_updates.isVisible() and self.filter_updates: self.table_apps.model().removeRow(res['pkg'].table_index) + del self.pkgs[res['pkg'].table_index] + + if self.pkgs: + for idx, p in enumerate(self.pkgs): + p.table_index = idx + else: self.table_apps.update_package(res['pkg'], change_update_col=True)