Revert "Readd close code at the correct place"
This reverts commit 64458ec906.
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
|
||||
import wx
|
||||
import gui.chromeTabs
|
||||
import gui.mainFrame
|
||||
|
||||
class MultiSwitch(gui.chromeTabs.PFNotebook):
|
||||
def __init__(self, parent):
|
||||
@@ -46,12 +45,6 @@ class MultiSwitch(gui.chromeTabs.PFNotebook):
|
||||
gui.chromeTabs.PFNotebook.AddPage(self, tabWnd, tabTitle, tabImage, True)
|
||||
|
||||
|
||||
def DeletePage(self, n):
|
||||
if self.GetPageCount() > 1:
|
||||
gui.chromeTabs.PFNotebook.DeletePage(self, n)
|
||||
else:
|
||||
gui.mainFrame.MainFrame.getInstance().Close()
|
||||
|
||||
class TabSpawner(object):
|
||||
tabTypes = []
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user