Don't close last tab
This commit is contained in:
parent
26df5a8076
commit
c392993c79
@ -24,9 +24,13 @@ class TabbedBrowser(TabWidget):
|
|||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def close_act(self):
|
def close_act(self):
|
||||||
idx = self.currentIndex()
|
if len(self.tabs) > 1:
|
||||||
self.tabs.pop(idx)
|
idx = self.currentIndex()
|
||||||
self.removeTab(idx)
|
self.tabs.pop(idx)
|
||||||
|
self.removeTab(idx)
|
||||||
|
else:
|
||||||
|
# FIXME
|
||||||
|
pass
|
||||||
|
|
||||||
class BrowserTab(QWebView):
|
class BrowserTab(QWebView):
|
||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
|
Loading…
Reference in New Issue
Block a user