From 8c68f6404f7d86552e2e93bc0fbc992ba0f54b2b Mon Sep 17 00:00:00 2001 From: René Stadler Date: Fri, 24 Aug 2012 01:20:05 +0200 Subject: window: show error for unparseable files --- GstDebugViewer/GUI/window.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'GstDebugViewer') 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) -- cgit v1.2.3