From 89af45610040617d6f2f1b4fa1608d449aab5de1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sat, 19 Jul 2008 13:17:46 +0000 Subject: [PATCH] * GuiView.cpp: - disable non-working splitting actions (bug 5044). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25712 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 06663b5d02..ca024a5c36 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1095,7 +1095,12 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag) break; case LFUN_SPLIT_VIEW: - enable = buf; + if (cmd.getArg(0) == "vertical") + enable = buf && (d.splitter_->count() == 1 || + d.splitter_->orientation() == Qt::Vertical); + else + enable = buf && (d.splitter_->count() == 1 || + d.splitter_->orientation() == Qt::Horizontal); break; case LFUN_CLOSE_TAB_GROUP: -- 2.39.2