* 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
This commit is contained in:
Jürgen Spitzmüller 2008-07-19 13:17:46 +00:00
parent b17489d91e
commit 89af456100

View File

@ -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: