prevent tracebacks
This commit is contained in:
parent
a5b3045b8f
commit
f2771f7759
2 changed files with 2 additions and 2 deletions
|
@ -2518,7 +2518,7 @@ class GroupchatControl(ChatControlBase):
|
||||||
elif event.button == 2: # middle click
|
elif event.button == 2: # middle click
|
||||||
widget.get_selection().select_path(path)
|
widget.get_selection().select_path(path)
|
||||||
iter_ = self.model.get_iter(path)
|
iter_ = self.model.get_iter(path)
|
||||||
if len(path) == 2:
|
if path.get_depth() == 2:
|
||||||
nick = self.model[iter_][C_NICK]
|
nick = self.model[iter_][C_NICK]
|
||||||
self._start_private_message(nick)
|
self._start_private_message(nick)
|
||||||
return True
|
return True
|
||||||
|
|
|
@ -4503,7 +4503,7 @@ class RosterWindow:
|
||||||
return
|
return
|
||||||
path = list_of_paths[0]
|
path = list_of_paths[0]
|
||||||
data = ''
|
data = ''
|
||||||
if len(path) >= 2:
|
if path.get_depth() >= 2:
|
||||||
data = model[path][C_JID]
|
data = model[path][C_JID]
|
||||||
selection.set(selection.target, 8, data)
|
selection.set(selection.target, 8, data)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue