]> git.lyx.org Git - lyx.git/commitdiff
Aesthetics: Hide the tabbar when closing all windows one-by-one.
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 4 May 2009 11:53:34 +0000 (11:53 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 4 May 2009 11:53:34 +0000 (11:53 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29532 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp
src/frontends/qt4/GuiWorkArea.cpp

index d5c8f66476f0042348a1609f8e2dbaf67b7f9153..8a2f8a4fc9593ed8b1a9fd143fdfc33054e59de8 100644 (file)
@@ -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) {
index 5fa04fb0493d08da848d680167a1945c9b6eea73..8e948f6bece697627dce5ec025c44aaf024e391a 100644 (file)
@@ -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();
        }