mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Aesthetics: Hide the tabbar when closing all windows one-by-one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29532 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0842e988e7
commit
9ba69f3f1b
@ -538,6 +538,8 @@ void GuiView::closeEvent(QCloseEvent * close_event)
|
||||
int splitter_count = d.splitter_->count();
|
||||
for (; splitter_count; --splitter_count) {
|
||||
TabWorkArea * twa = d.tabWorkArea(0);
|
||||
twa->showBar(false);
|
||||
twa->updateTabTexts();
|
||||
|
||||
int twa_count = twa->count();
|
||||
for (; twa_count; --twa_count) {
|
||||
|
@ -1461,7 +1461,8 @@ bool TabWorkArea::removeWorkArea(GuiWorkArea * work_area)
|
||||
setFullScreen(true);
|
||||
else
|
||||
// Hide tabbar if there's only one tab.
|
||||
showBar(count() > 1);
|
||||
if (tabBar()->isVisible() && count() <= 1)
|
||||
showBar(false);
|
||||
} else {
|
||||
lastWorkAreaRemoved();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user