mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
Disable LFUN_GOTO_NOTE when it does not make sense
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10004 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c48efc7922
commit
14d9845a29
@ -972,7 +972,6 @@ FuncStatus BufferView::Pimpl::getStatus(FuncRequest const & cmd)
|
||||
case LFUN_FONT_STATE:
|
||||
case LFUN_INSERT_LABEL:
|
||||
case LFUN_BOOKMARK_SAVE:
|
||||
case LFUN_LABEL_GOTO:
|
||||
case LFUN_GOTO_PARAGRAPH:
|
||||
case LFUN_GOTOERROR:
|
||||
case LFUN_GOTONOTE:
|
||||
@ -987,6 +986,12 @@ FuncStatus BufferView::Pimpl::getStatus(FuncRequest const & cmd)
|
||||
flag.enabled(true);
|
||||
break;
|
||||
|
||||
case LFUN_LABEL_GOTO: {
|
||||
flag.enabled(!cmd.argument.empty()
|
||||
|| getInsetByCode<InsetRef>(cursor_, InsetBase::REF_CODE));
|
||||
break;
|
||||
}
|
||||
|
||||
case LFUN_BOOKMARK_GOTO:
|
||||
flag.enabled(isSavedPosition(convert<unsigned int>(cmd.argument)));
|
||||
break;
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-06-06 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
* BufferView_pimpl.C (getStatus): enable LFUN_GOTO_NOTE only
|
||||
when it actually makes sense.
|
||||
|
||||
2005-06-06 Martin Vermeer <martin.vermeer@hut.fi>
|
||||
|
||||
* BufferView_pimpl.C: revert to showCursor in connection with
|
||||
|
Loading…
Reference in New Issue
Block a user