Bug 891904 - Un-schedule full spell check when checker is disabled; r=ehsan,a=Standard8 for checkin on Thunderbird specific branch. DONTBUILD GECKO240_2013091120_RELBRANCH
authorAryeh Gregor <ayg@aryeh.name>
Tue, 01 Oct 2013 09:42:35 +0300
branchGECKO240_2013091120_RELBRANCH
changeset 148598 1e1b6b2d3cf4589727f1e574dc52c8d84213e155
parent 148567 dcc27a761b8ff2ccf9b30702367369126bfb49e5
child 148599 e94a185b652b66aac203393cc2a1bc171414f37e
push id26
push userbugzilla@standard8.plus.com
push dateWed, 09 Oct 2013 20:15:44 +0000
reviewersehsan, Standard8
bugs891904
milestone24.0
Bug 891904 - Un-schedule full spell check when checker is disabled; r=ehsan,a=Standard8 for checkin on Thunderbird specific branch. DONTBUILD
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.