From 4a16880406c10982b6ecb60dcbb506ad945ed109 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Sat, 31 Dec 2011 17:55:20 +0000 Subject: [PATCH] #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 --- src/frontends/qt4/GuiView.cpp | 4 +++- status.20x | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 58b71c41cd..60f74cdcd5 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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; diff --git a/status.20x b/status.20x index d0bc83cc05..036712e2d4 100644 --- a/status.20x +++ b/status.20x @@ -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 -- 2.39.5