From: Richard Heck Date: Sun, 15 Jul 2012 02:13:40 +0000 (-0400) Subject: LFUN_CLOSE_TAB_GROUP does exactly the same thing as X-Git-Tag: 2.1.0beta1~1656 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a0afcdb391b90efc6b15badb72273c2c0c1d0a38;p=features.git LFUN_CLOSE_TAB_GROUP does exactly the same thing as LFUN_BUFFER_CLOSE_ALL if there's only one tab group open, so there's no need to enable it in that case. --- diff --git a/lib/ui/stdmenus.inc b/lib/ui/stdmenus.inc index b7e1f03a93..097de8e2d5 100644 --- a/lib/ui/stdmenus.inc +++ b/lib/ui/stdmenus.inc @@ -330,7 +330,7 @@ Menuset Separator Item "Split View Into Left and Right Half|i" "split-view horizontal" Item "Split View Into Upper and Lower Half|e" "split-view vertical" - Item "Close Current View|w" "close-tab-group" + OptItem "Close Current View|w" "close-tab-group" Item "Fullscreen|l" "ui-toggle fullscreen" Submenu "Toolbars|b" "toolbars" Separator diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index ca636329d6..52a4379fa7 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1702,7 +1702,7 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag) break; case LFUN_CLOSE_TAB_GROUP: - enable = d.currentTabWorkArea(); + enable = d.tabWorkAreaCount() > 1; break; case LFUN_TOOLBAR_TOGGLE: {