mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
window: show error for unparseable files
This commit is contained in:
parent
9fda3730a0
commit
c84185ca48
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue