#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:
Stephan Witt 2011-12-31 17:55:20 +00:00
parent a3671ef1c4
commit 4a16880406
2 changed files with 5 additions and 1 deletions

View File

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

View File

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