mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
#5585 (backport) disable spell checker dialog for empty documents
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40553 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a3671ef1c4
commit
4a16880406
@ -1734,7 +1734,9 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
|
||||
else if (name == "latexlog")
|
||||
enable = FileName(doc_buffer->logName()).isReadableFile();
|
||||
else if (name == "spellchecker")
|
||||
enable = theSpellChecker() && !doc_buffer->isReadonly();
|
||||
enable = theSpellChecker()
|
||||
&& !doc_buffer->isReadonly()
|
||||
&& !doc_buffer->text().empty();
|
||||
else if (name == "vclog")
|
||||
enable = doc_buffer->lyxvc().inUse();
|
||||
break;
|
||||
|
@ -61,6 +61,8 @@ What's new
|
||||
|
||||
- Let inset-toggle work for very large documents (bug 7945).
|
||||
|
||||
- Disable spell checker dialog for empty documents (bug 5585).
|
||||
|
||||
|
||||
* DOCUMENTATION AND LOCALIZATION
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user