mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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
|
start, end = self.line_index_range
|
||||||
|
|
||||||
|
if start == end:
|
||||||
|
raise IndexError ("not in range (empty)")
|
||||||
|
|
||||||
if li < start or li > end:
|
if li < start or li > end:
|
||||||
raise IndexError ("not in range")
|
raise IndexError ("not in range")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue