window: show error for unparseable files

This commit is contained in:
René Stadler 2012-08-24 01:20:05 +02:00 committed by Stefan Sauer
parent 9fda3730a0
commit c84185ca48

View file

@ -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)