mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
* 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:
parent
b17489d91e
commit
89af456100
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user