From 5e449d62f4b0bb97547eb160476af22d7058dad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Moreira?= Date: Wed, 19 Feb 2020 13:29:53 -0300 Subject: [PATCH] [ui][table] fix description treatment when null --- bauh/view/qt/apps_table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bauh/view/qt/apps_table.py b/bauh/view/qt/apps_table.py index b6dae8c6..60bbcaa8 100644 --- a/bauh/view/qt/apps_table.py +++ b/bauh/view/qt/apps_table.py @@ -381,7 +381,7 @@ class AppsTable(QTableWidget): item.setMinimumWidth(300) if pkg.model.description is not None or not pkg.model.is_application() or pkg.model.status == PackageStatus.READY: - desc = pkg.model.description.split('\n')[0] + desc = pkg.model.description.split('\n')[0] if pkg.model.description else pkg.model.description else: desc = '...'