mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
fix: trying to load null disk icon path
This commit is contained in:
@@ -90,3 +90,4 @@ back=back
|
||||
show=show
|
||||
ask.continue=Continue ?
|
||||
cancel=cancel
|
||||
status.caching_data=Caching {} data to disk
|
||||
|
||||
@@ -91,4 +91,5 @@ copy=copiar
|
||||
back=volver
|
||||
show=mostrar
|
||||
ask.continue=¿Continuar ?
|
||||
cancel=cancelar
|
||||
cancel=cancelar
|
||||
status.caching_data=Cacheando los datos de {} para el disco
|
||||
@@ -91,4 +91,5 @@ copy=copiar
|
||||
back=voltar
|
||||
show=mostrar
|
||||
ask.continue=Continuar ?
|
||||
cancel=cancelar
|
||||
cancel=cancelar
|
||||
status.caching_data=Cacheando dados de {} para o disco
|
||||
@@ -328,7 +328,7 @@ class AppsTable(QTableWidget):
|
||||
col.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEnabled)
|
||||
col.setToolTip(self.window.locale_keys['app.name'].lower())
|
||||
|
||||
if self.disk_cache and app_v.model.supports_disk_cache() and os.path.exists(app_v.model.get_disk_icon_path()):
|
||||
if self.disk_cache and app_v.model.supports_disk_cache() and app_v.model.get_disk_icon_path() and os.path.exists(app_v.model.get_disk_icon_path()):
|
||||
with open(app_v.model.get_disk_icon_path(), 'rb') as f:
|
||||
icon_bytes = f.read()
|
||||
pixmap = QPixmap()
|
||||
|
||||
Reference in New Issue
Block a user