From 040cdc9505975a2ac4470a1f7befc0446755bec4 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Tue, 27 Aug 2019 13:32:20 -0300 Subject: [PATCH] fix: trying to load null disk icon path --- bauh/resources/locale/en | 1 + bauh/resources/locale/es | 3 ++- bauh/resources/locale/pt | 3 ++- bauh/view/qt/apps_table.py | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bauh/resources/locale/en b/bauh/resources/locale/en index f0de3da7..4b4137d9 100644 --- a/bauh/resources/locale/en +++ b/bauh/resources/locale/en @@ -90,3 +90,4 @@ back=back show=show ask.continue=Continue ? cancel=cancel +status.caching_data=Caching {} data to disk diff --git a/bauh/resources/locale/es b/bauh/resources/locale/es index d396aa7c..ef3eab97 100644 --- a/bauh/resources/locale/es +++ b/bauh/resources/locale/es @@ -91,4 +91,5 @@ copy=copiar back=volver show=mostrar ask.continue=¿Continuar ? -cancel=cancelar \ No newline at end of file +cancel=cancelar +status.caching_data=Cacheando los datos de {} para el disco \ No newline at end of file diff --git a/bauh/resources/locale/pt b/bauh/resources/locale/pt index 43a4a0e1..c5833120 100644 --- a/bauh/resources/locale/pt +++ b/bauh/resources/locale/pt @@ -91,4 +91,5 @@ copy=copiar back=voltar show=mostrar ask.continue=Continuar ? -cancel=cancelar \ No newline at end of file +cancel=cancelar +status.caching_data=Cacheando dados de {} para o disco \ No newline at end of file diff --git a/bauh/view/qt/apps_table.py b/bauh/view/qt/apps_table.py index eb3695d7..ef0527b6 100644 --- a/bauh/view/qt/apps_table.py +++ b/bauh/view/qt/apps_table.py @@ -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()