Jean-Marc Lasgouttes wrote:
> Helge> New document, type "test test test" Press "home" or move the
> Helge> cursor there. Press F7 for spell checking.
> 
> Helge> First, I get "3 words checked". Well, that's fine, but _then_ I
> Helge> get the spell check dialog that claims to be 93% finished. All
> Helge> fields are blank, it is as if it thinks the empty string is
> Helge> "wrong" and suggest another empty string as replacement.
> Helge> Pressing "ignore" gets rid of the dialog and then I'm told that
> Helge> 6 words were checked. Impressive for a 3-word document. Seems
> Helge> the spellchecker ran twice? (I use qt+aspell)
> 
> 
> I am trying to fix this and it proves very frustrating.

[snip frustration]

> I hate it!
> JMarc

Easy, boy, easy!

If the dialog is closed then Dialog::isVisible() should return false.
Assuming that it doesn't lie, why not just add this check to:

 void Dialog::update(string const & data)
 {
+   if (!isVisible())
+       return;
    if (controller().isBufferDependent() && !kernel().isBufferAvailable())
        return;
    ...
 }

-- 
Angus

Reply via email to