Bug 891904 - Un-schedule full spell check when checker is disabled. r=ehsan, a=akeybl
authorAryeh Gregor <ayg@aryeh.name>
Tue, 01 Oct 2013 09:42:35 +0300
changeset 148697 21d67fb5f1485bb3eecd1a479ba5f725f0fa2a53
parent 148696 4ef90f0eecf25cc3190ffb270a8c959471d309bf
child 148698 c874a5812ba1b207c9fb9f8a065ade3d1f65d56d
push id85
push userryanvm@gmail.com
push dateMon, 02 Dec 2013 19:25:24 +0000
reviewersehsan, akeybl
bugs891904
milestone24.1.1
Bug 891904 - Un-schedule full spell check when checker is disabled. r=ehsan, a=akeybl
extensions/spellcheck/src/mozInlineSpellChecker.cpp
--- a/extensions/spellcheck/src/mozInlineSpellChecker.cpp
+++ b/extensions/spellcheck/src/mozInlineSpellChecker.cpp
@@ -621,16 +621,17 @@ nsresult mozInlineSpellChecker::Cleanup(
   }
   if (mNumPendingSpellChecks > 0) {
     // If mNumPendingSpellChecks is still > 0 at this point, the remainder is
     // pending scheduled spell checks.
     ChangeNumPendingSpellChecks(-mNumPendingSpellChecks, editor);
   }
 
   mEditor = nullptr;
+  mFullSpellCheckScheduled = false;
 
   return rv;
 }
 
 // mozInlineSpellChecker::CanEnableInlineSpellChecking
 //
 //    This function can be called to see if it seems likely that we can enable
 //    spellchecking before actually creating the InlineSpellChecking objects.