mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Go back to help screen when last tab is closed
This commit is contained in:
parent
f3a660fec3
commit
3164269793
@ -71,6 +71,8 @@ class Central(QStackedWidget):
|
|||||||
for i in xrange(self.editor_tabs.count()):
|
for i in xrange(self.editor_tabs.count()):
|
||||||
if self.editor_tabs.widget(i) is editor:
|
if self.editor_tabs.widget(i) is editor:
|
||||||
self.editor_tabs.removeTab(i)
|
self.editor_tabs.removeTab(i)
|
||||||
|
if self.editor_tabs.count() == 0:
|
||||||
|
self.setCurrentIndex(0)
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user