Closing application when no tabs are open is annoying. Was worth testing, but definitely not the desired behavior.

(Automatic revert caused conflicts, so I'm doing this commit manually).
This commit is contained in:
Corollax
2010-11-25 18:37:29 -06:00
parent e98cecfea1
commit 023de6240c

View File

@@ -19,7 +19,6 @@
import wx
import gui.chromeTabs
import gui.mainFrame
class MultiSwitch(gui.chromeTabs.PFNotebook):
def __init__(self, parent):
@@ -44,10 +43,7 @@ class MultiSwitch(gui.chromeTabs.PFNotebook):
def DeletePage(self, n, *args, **kwargs):
if self.GetPageCount() > 1:
gui.chromeTabs.PFNotebook.DeletePage(self, n, *args, **kwargs)
else:
gui.mainFrame.MainFrame.getInstance().Close()
gui.chromeTabs.PFNotebook.DeletePage(self, n, *args, **kwargs)
class BlankPage(wx.Panel):
def __init__(self, parent):