mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
fix: handle null results
This commit is contained in:
1 parent
ab9c97234e
commit
e8e78ee6a1
5 files changed
+52
-60
No files matched your search
@@ -104,6 +104,8 @@ class TreeView(CursorMixin, Gtk.TreeView): # type: ignore
|
||||
# self.get_selection().select_iter(it)
|
||||
# return True
|
||||
|
||||
if self.get_model() is None:
|
||||
return
|
||||
if len(self.get_model()) < 2:
|
||||
return
|
||||
|
||||
|
||||
Reference in new issue
Block a user