Disable add_word submenu from spell checker menu if user dictionary is not open

This commit is contained in:
Ianos Gnatiuc
2005-12-09 15:48:52 +00:00
parent d404923262
commit 1642dfe4ed
2 changed files with 5 additions and 2 deletions

View File

@@ -1143,13 +1143,13 @@ int GMenuSChecker::Run(CSpellChecker &schecker, const char *word)
End();
}
if (*word)
if (*word && schecker.IsUdrOpened())
{
Item(TAG_ADDWORD, "A Add Word... ");
numrows++;
}
if (suggest.size())
if (suggest.size() && (numrows > 7))
{
ItemSep();
numrows++;