From 016e81af3aa1485861daff6b378d6f8fcca541f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Moreira?= Date: Fri, 31 Jan 2020 13:11:47 -0300 Subject: [PATCH] [fix][ui] not displaying icons retrieved from a HTTP redirect --- CHANGELOG.md | 1 + bauh/view/qt/apps_table.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 08cf63c7..19e767c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - **About** window icons scaling - Toolbar buttons get hidden [#5](https://github.com/vinifmor/bauh/issues/5) - minor bug fixes + - not displaying icons retrieved from a HTTP redirect ### UI - **Style selector** and **Application types** action moved to the new **Settings panel** diff --git a/bauh/view/qt/apps_table.py b/bauh/view/qt/apps_table.py index e671b088..cc2dda99 100644 --- a/bauh/view/qt/apps_table.py +++ b/bauh/view/qt/apps_table.py @@ -196,8 +196,7 @@ class AppsTable(QTableWidget): self.window.install(pkgv) def _load_icon_and_cache(self, http_response: QNetworkReply): - - icon_url = http_response.url().toString() + icon_url = http_response.request().url().toString() icon_data = self.icon_cache.get(icon_url) icon_was_cached = True