Skip to content

Commit 594537f

Browse files
authored
Merge pull request #849 from vssdeo/835-crash-after-unzooming-a-single-terminal-inside-a-tab
[bug 835] 835-crash-after-unzooming-a-single-terminal-inside-a-tab #835
2 parents 3ed6ea7 + c7c9fd0 commit 594537f

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

terminatorlib/notebook.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,6 @@ def newtab(self, debugtab=False, widget=None, cwd=None, metadata=None, profile=N
343343
self.set_current_page(tabpos)
344344
self.show_all()
345345
if maker.isinstance(term_widget, 'Terminal'):
346-
#notify plugins of tab-change
347-
dbg("emit tab-change for tabpos: %s " % tabpos)
348-
term_widget.emit('tab-change', tabpos)
349-
self.set_current_page(tabpos)
350346
widget.grab_focus()
351347

352348
def wrapcloseterm(self, widget):

terminatorlib/terminator.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,6 @@ def find_terminal_by_uuid(self, uuid):
185185
for terminal in self.terminals:
186186
dbg('checking: %s (%s)' % (terminal.uuid.urn, terminal))
187187
if terminal.uuid.urn == uuid:
188-
if terminal.get_toplevel().is_child_notebook():
189-
topchild = terminal.get_toplevel().get_child()
190-
current_page = topchild.get_current_page()
191-
#we need to emit signal for plugin and retain same page
192-
dbg("current_page for tab-change-signal:%s" % current_page)
193-
terminal.emit('tab-change', current_page)
194-
195188
return terminal
196189
return None
197190

0 commit comments

Comments
 (0)