From c84185ca4868a6c7cff6366955760a0e11e21d3d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9=20Stadler?= Date: Fri, 24 Aug 2012 01:20:05 +0200 Subject: [PATCH] window: show error for unparseable files --- debug-viewer/GstDebugViewer/GUI/window.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debug-viewer/GstDebugViewer/GUI/window.py b/debug-viewer/GstDebugViewer/GUI/window.py index 6fe3d02..fc35980 100644 --- a/debug-viewer/GstDebugViewer/GUI/window.py +++ b/debug-viewer/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) -- 2.7.4