From c5b442e1410b6670c0e3129309dc24c7de1dda0b Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 14 May 2021 18:27:41 +0200 Subject: [PATCH] opkg_manager: supplement to ensure update of package list after menu update --- src/gui/opkg_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/opkg_manager.cpp b/src/gui/opkg_manager.cpp index 10fe639f5..73746b887 100644 --- a/src/gui/opkg_manager.cpp +++ b/src/gui/opkg_manager.cpp @@ -484,7 +484,7 @@ void COPKGManager::updateMenu() bool upgradesAvailable = false; getPkgData(CMD_LIST_INSTALLED); getPkgData(CMD_LIST_UPGRADEABLE); - initPackagePatternLists(); + for (map::iterator it = pkg_map.begin(); it != pkg_map.end(); ++it) { /* this should no longer trigger at all */ if (!isPermittedPackage(it->second.name)) @@ -647,7 +647,7 @@ int COPKGManager::doUpdate() DisplayErrorMessage(msg.c_str()); return r; } - + initPackagePatternLists(); return 0; }