Block tab creation while zoomed. Closes LP #563911

This commit is contained in:
Chris Jones 2010-04-15 20:32:25 +01:00
parent 9501cde85e
commit 6a5f3381a7
1 changed files with 4 additions and 0 deletions

View File

@ -163,6 +163,10 @@ class Window(Container, gtk.Window):
"""Make a new tab"""
cwd = None
if self.get_property('term_zoomed') == True:
err("You can't create a tab while a terminal is maximised/zoomed")
return
if widget:
cwd = widget.get_cwd()
maker = Factory()