mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 10:54:16 +02:00
[fix] not verifying if an icon path is a file
This commit is contained in:
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
|
|
||||||
|
## [0.8.1]
|
||||||
|
### Fixes
|
||||||
|
- not verifying if an icon path is a file
|
||||||
|
|
||||||
## [0.8.0] 2019-12-24
|
## [0.8.0] 2019-12-24
|
||||||
### Features
|
### Features
|
||||||
- Native Web applications support:
|
- Native Web applications support:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
__version__ = '0.8.0'
|
__version__ = '0.8.1'
|
||||||
__app_name__ = 'bauh'
|
__app_name__ = 'bauh'
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -341,8 +341,9 @@ class AppsTable(QTableWidget):
|
|||||||
|
|
||||||
item.setText(name)
|
item.setText(name)
|
||||||
|
|
||||||
if self.disk_cache and pkg.model.supports_disk_cache() and pkg.model.get_disk_icon_path() and os.path.exists(pkg.model.get_disk_icon_path()):
|
icon_path = pkg.model.get_disk_icon_path()
|
||||||
with open(pkg.model.get_disk_icon_path(), 'rb') as f:
|
if self.disk_cache and pkg.model.supports_disk_cache() and icon_path and os.path.isfile(icon_path):
|
||||||
|
with open(icon_path, 'rb') as f:
|
||||||
icon_bytes = f.read()
|
icon_bytes = f.read()
|
||||||
pixmap = QPixmap()
|
pixmap = QPixmap()
|
||||||
pixmap.loadFromData(icon_bytes)
|
pixmap.loadFromData(icon_bytes)
|
||||||
|
|||||||
Reference in New Issue
Block a user