mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-10 17:54:15 +02:00
[fix] preventing to load null application null icon
This commit is contained in:
@@ -203,12 +203,14 @@ class AppsTable(QTableWidget):
|
||||
|
||||
icon_was_cached = False
|
||||
pixmap = QPixmap()
|
||||
|
||||
pixmap.loadFromData(icon_bytes)
|
||||
|
||||
if not pixmap.isNull():
|
||||
icon = QIcon(pixmap)
|
||||
icon_data = {'icon': icon, 'bytes': icon_bytes}
|
||||
self.icon_cache.add(icon_url, icon_data)
|
||||
|
||||
if icon_data:
|
||||
for idx, app in enumerate(self.window.pkgs):
|
||||
if app.model.icon_url == icon_url:
|
||||
col_name = self.item(idx, 0)
|
||||
|
||||
Reference in New Issue
Block a user