Skip to content

Commit

Permalink
Merge pull request #849 from vssdeo/835-crash-after-unzooming-a-singl…
Browse files Browse the repository at this point in the history
…e-terminal-inside-a-tab

[bug 835] 835-crash-after-unzooming-a-single-terminal-inside-a-tab #835
  • Loading branch information
mattrose authored Feb 16, 2024
2 parents 3ed6ea7 + c7c9fd0 commit 594537f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
4 changes: 0 additions & 4 deletions terminatorlib/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,6 @@ def newtab(self, debugtab=False, widget=None, cwd=None, metadata=None, profile=N
self.set_current_page(tabpos)
self.show_all()
if maker.isinstance(term_widget, 'Terminal'):
#notify plugins of tab-change
dbg("emit tab-change for tabpos: %s " % tabpos)
term_widget.emit('tab-change', tabpos)
self.set_current_page(tabpos)
widget.grab_focus()

def wrapcloseterm(self, widget):
Expand Down
7 changes: 0 additions & 7 deletions terminatorlib/terminator.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,6 @@ def find_terminal_by_uuid(self, uuid):
for terminal in self.terminals:
dbg('checking: %s (%s)' % (terminal.uuid.urn, terminal))
if terminal.uuid.urn == uuid:
if terminal.get_toplevel().is_child_notebook():
topchild = terminal.get_toplevel().get_child()
current_page = topchild.get_current_page()
#we need to emit signal for plugin and retain same page
dbg("current_page for tab-change-signal:%s" % current_page)
terminal.emit('tab-change', current_page)

return terminal
return None

Expand Down

0 comments on commit 594537f

Please sign in to comment.