зеркало из https://github.com/mozilla/pjs.git
Changed to notify conditionally.
This commit is contained in:
Родитель
5c3e6ac932
Коммит
ced17758fc
|
@ -159,7 +159,9 @@ NS_IMETHODIMP nsNativeDetector::DoIt(
|
|||
nsDetectionConfident aConfidence;
|
||||
if (SUCCEEDED(DetectCharsetUsingMLang(mMultiLanguage, mMLangConvertCharset,
|
||||
mCharset, aConfidence, (BYTE *) aBuf, &theSize))) {
|
||||
mObserver->Notify(mCharset, aConfidence);
|
||||
if (eNoAnswerMatch != aConfidence) {
|
||||
mObserver->Notify(mCharset, aConfidence);
|
||||
}
|
||||
}
|
||||
else {
|
||||
mObserver->Notify("", eNoAnswerMatch);
|
||||
|
|
Загрузка…
Ссылка в новой задаче