[Kbabel] [PATCH] fix spellcheck in multiple files

Stanislav Visnovsky visnovsky@nenya.ms.mff.cuni.cz
Fri, 1 Nov 2002 13:44:25 +0100 (CET)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--1908640017-602299781-1036154665=:30892
Content-Type: TEXT/PLAIN; charset=US-ASCII


Hi!

This patch should fix problem, when spellchecking in multiple
files stops mysteriously and does not continue.

The problem was in late closing of the client (ispell/aspell). If 
it finished after the spellchecking of a new files started, it would
stop the spellchecker.

This patch should fix it. Please, test it since it is an important fix to 
get into KBabel 1.0 (and KDE 3.1).

Thanks!

Stanislav

--1908640017-602299781-1036154665=:30892
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="multiplespell.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.44.0211011344250.30892@nenya.ms.mff.cuni.cz>
Content-Description: 
Content-Disposition: attachment; filename="multiplespell.patch"

PyBtdWx0aXBsZXNwZWxsLnBhdGNoDQpJbmRleDoga2JhYmVsLmNwcA0KPT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PQ0KUkNTIGZpbGU6IC9ob21lL2tkZS9rZGVz
ZGsva2JhYmVsL2tiYWJlbC9rYmFiZWwuY3BwLHYNCnJldHJpZXZpbmcgcmV2
aXNpb24gMS4xMjQNCmRpZmYgLXUgLTMgLXAgLXIxLjEyNCBrYmFiZWwuY3Bw
DQotLS0ga2JhYmVsLmNwcAkyMDAyLzA5LzI5IDE1OjQ1OjMxCTEuMTI0DQor
Kysga2JhYmVsLmNwcAkyMDAyLzExLzAxIDEyOjQwOjUzDQpAQCAtMTg4Miw2
ICsxODgyLDcgQEAgdm9pZCBLQmFiZWw6OnNwZWxsY2hlY2tEb25lKCBpbnQg
cmVzdWx0KQ0KIAlfdG9TcGVsbGNoZWNrLnBvcF9mcm9udCgpOw0KIA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