mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
[ui] fix -> icons that cannot be rendered are being displayed as an empty space
This commit is contained in:
@@ -86,6 +86,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- UI
|
- UI
|
||||||
- crashing when nothing can be upgraded
|
- crashing when nothing can be upgraded
|
||||||
- random C++ wrapper errors with some forms due to missing references
|
- random C++ wrapper errors with some forms due to missing references
|
||||||
|
- icons that cannot be rendered are being displayed as an empty space (now the type icon is displayed instead)
|
||||||
|
|
||||||
|
|
||||||
## [0.9.6] 2020-06-26
|
## [0.9.6] 2020-06-26
|
||||||
|
|||||||
@@ -426,7 +426,11 @@ class AppsTable(QTableWidget):
|
|||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
icon = QIcon.fromTheme(icon_path)
|
icon = QIcon.fromTheme(icon_path)
|
||||||
self.icon_cache.add_non_existing(pkg.model.icon_url, {'icon': icon, 'bytes': None})
|
|
||||||
|
if icon.isNull():
|
||||||
|
icon = QIcon(pkg.model.get_default_icon_path())
|
||||||
|
else:
|
||||||
|
self.icon_cache.add_non_existing(pkg.model.icon_url, {'icon': icon, 'bytes': None})
|
||||||
|
|
||||||
except:
|
except:
|
||||||
icon = QIcon(pkg.model.get_default_icon_path())
|
icon = QIcon(pkg.model.get_default_icon_path())
|
||||||
|
|||||||
Reference in New Issue
Block a user