зеркало из https://github.com/mozilla/pjs.git
Fix for #82708 - Using Find doesn't alert user when completed searching
r=adamlock, sr=rpotts
This commit is contained in:
Родитель
17cd071118
Коммит
b30a4540b2
|
@ -947,7 +947,13 @@ LRESULT CBrowserView::OnFindMsg(WPARAM wParam, LPARAM lParam)
|
|||
PRBool didFind;
|
||||
nsresult rv = finder->FindNext(&didFind);
|
||||
|
||||
return (NS_SUCCEEDED(rv) && didFind);
|
||||
if(!didFind)
|
||||
{
|
||||
AfxMessageBox(IDS_SRCH_STR_NOT_FOUND);
|
||||
dlg->SetFocus();
|
||||
}
|
||||
|
||||
return (NS_SUCCEEDED(rv) && didFind);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -459,6 +459,7 @@ BEGIN
|
|||
IDS_ENCRYPTION_HIGH_GRADE "High-grade Encryption (%1% %2!d! bit)"
|
||||
IDS_ENCRYPTION_LOW_GRADE "Low-grade Encryption (%1% %2!d! bit)"
|
||||
IDS_ENCRYPTION_NONE "Connection Not Encrypted"
|
||||
IDS_SRCH_STR_NOT_FOUND "The text you entered was not found"
|
||||
END
|
||||
|
||||
STRINGTABLE PRELOAD DISCARDABLE
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#define IDS_ENCRYPTION_HIGH_GRADE 147
|
||||
#define IDS_ENCRYPTION_LOW_GRADE 148
|
||||
#define IDS_ENCRYPTION_NONE 149
|
||||
#define IDS_SRCH_STR_NOT_FOUND 150
|
||||
#define ID_URL_BAR 1001
|
||||
#define ID_PROG_BAR 1002
|
||||
#define IDC_PROMPT_ANSWER 1003
|
||||
|
|
Загрузка…
Ссылка в новой задаче