mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
#5585 disable spell checker dialog for empty documents
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40552 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cc4a7fe79d
commit
3a1c5d4431
@ -1759,7 +1759,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;
|
||||
|
Loading…
Reference in New Issue
Block a user