Merge pull request #145 from mattrose/fix-wrapcloseterm
fix traceback on paned.py
This commit is contained in:
commit
f3ed616e22
|
@ -308,7 +308,10 @@ class Paned(Container):
|
||||||
if focus_sibling:
|
if focus_sibling:
|
||||||
first_term_sibling.grab_focus()
|
first_term_sibling.grab_focus()
|
||||||
elif not sibling.get_toplevel().is_child_notebook():
|
elif not sibling.get_toplevel().is_child_notebook():
|
||||||
|
try:
|
||||||
Terminator().find_terminal_by_uuid(sibling.get_toplevel().last_active_term.urn).grab_focus()
|
Terminator().find_terminal_by_uuid(sibling.get_toplevel().last_active_term.urn).grab_focus()
|
||||||
|
except AttributeError:
|
||||||
|
dbg('cannot find terminal with uuid: %s' % sibling.get_toplevel().last_active_term.urn)
|
||||||
else:
|
else:
|
||||||
dbg("Paned::wrapcloseterm: self.closeterm failed")
|
dbg("Paned::wrapcloseterm: self.closeterm failed")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue