prevent gtk warning when adding rows while treeview has no model
This commit is contained in:
parent
ff1fd521be
commit
65127b3620
1 changed files with 4 additions and 0 deletions
|
@ -1428,6 +1428,8 @@ class RosterWindow:
|
||||||
"""
|
"""
|
||||||
Expand/collapse account row based on self.collapsed_rows
|
Expand/collapse account row based on self.collapsed_rows
|
||||||
"""
|
"""
|
||||||
|
if not self.tree.get_model():
|
||||||
|
return
|
||||||
iterA = self._get_account_iter(account)
|
iterA = self._get_account_iter(account)
|
||||||
if not iterA:
|
if not iterA:
|
||||||
# thank you modelfilter
|
# thank you modelfilter
|
||||||
|
@ -1444,6 +1446,8 @@ class RosterWindow:
|
||||||
"""
|
"""
|
||||||
Expand/collapse group row based on self.collapsed_rows
|
Expand/collapse group row based on self.collapsed_rows
|
||||||
"""
|
"""
|
||||||
|
if not self.tree.get_model():
|
||||||
|
return
|
||||||
iterG = self._get_group_iter(group, account)
|
iterG = self._get_group_iter(group, account)
|
||||||
if not iterG:
|
if not iterG:
|
||||||
# Group not visible
|
# Group not visible
|
||||||
|
|
Loading…
Add table
Reference in a new issue