summaryrefslogtreecommitdiff
path: root/plugins/python/cglimpse
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-12-25 10:01:07 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-12-25 10:01:07 (GMT)
commitcd59150b26173fc4caa44b604d9e0989de331b3d (patch)
treef382ba060975e9553a3a115b30b16d22e3ae5d72 /plugins/python/cglimpse
parent2a38ddb97342bc8236192117d0d275aa1c24d5db (diff)
Taken non binary content into account for the glimpse panel.
Diffstat (limited to 'plugins/python/cglimpse')
-rw-r--r--plugins/python/cglimpse/panel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/python/cglimpse/panel.py b/plugins/python/cglimpse/panel.py
index 2fd3c7f..2245e3a 100644
--- a/plugins/python/cglimpse/panel.py
+++ b/plugins/python/cglimpse/panel.py
@@ -44,7 +44,7 @@ class CGlimpsePanel(PanelItem, UpdatablePanel):
def _change_content(self, old, new):
"""Get notified about a LoadedContent change."""
- self._content = new.content
+ self._content = new.content if new else None
combo = self._builder.get_object('method_sel')
self._on_method_changed(combo)