summaryrefslogtreecommitdiff
path: root/GstDebugViewer
diff options
context:
space:
mode:
authorRené Stadler <mail@renestadler.de>2012-08-24 01:20:05 +0200
committerRené Stadler <mail@renestadler.de>2012-08-24 01:58:21 +0200
commit8c68f6404f7d86552e2e93bc0fbc992ba0f54b2b (patch)
tree3f2c8cb27386a06ce7e731aed3d8df232d37f9c3 /GstDebugViewer
parenteec8529dac0de7e98b60e264147357f6aea486a0 (diff)
window: show error for unparseable files
Diffstat (limited to 'GstDebugViewer')
-rw-r--r--GstDebugViewer/GUI/window.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/GstDebugViewer/GUI/window.py b/GstDebugViewer/GUI/window.py
index 6fe3d02..fc35980 100644
--- a/GstDebugViewer/GUI/window.py
+++ b/GstDebugViewer/GUI/window.py
@@ -884,6 +884,10 @@ class Window (object):
self.actions.groups["RowActions"].props.sensitive = True
self.actions.show_hidden_lines.props.sensitive = False
+ if len (self.log_model) == 0:
+ self.show_error (_("The file does not contain any parsable lines."),
+ _("It is not a GStreamer log file."))
+
def idle_set ():
self.log_view.set_model (self.log_range)