mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
Avoid GtkWarning when filtering down to no visible line at all
This commit is contained in:
parent
5f35233eb7
commit
8dbfc09163
1 changed files with 3 additions and 0 deletions
|
@ -498,6 +498,9 @@ class RangeFilteredLogModel (FilteredLogModelBase):
|
|||
|
||||
start, end = self.line_index_range
|
||||
|
||||
if start == end:
|
||||
raise IndexError ("not in range (empty)")
|
||||
|
||||
if li < start or li > end:
|
||||
raise IndexError ("not in range")
|
||||
|
||||
|
|
Loading…
Reference in a new issue