зеркало из https://github.com/mozilla/pjs.git
fix for #48397 - make search work again by avoiding a double-initialization of the search root URI
r=scottip
This commit is contained in:
Родитель
2e1cdf3f0a
Коммит
00040d9a71
|
@ -48,6 +48,11 @@ nsMsgSearchDataSource::nsMsgSearchDataSource()
|
|||
nsresult
|
||||
nsMsgSearchDataSource::Init()
|
||||
{
|
||||
nsresult rv;
|
||||
rv = nsMsgRDFDataSource::Init();
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
if (gInstanceCount++ == 0) {
|
||||
|
||||
getRDFService()->GetResource(NC_RDF_MESSAGECHILD, getter_AddRefs(kNC_MessageChild));
|
||||
|
@ -74,7 +79,7 @@ NS_IMPL_ISUPPORTS2(nsMsgSearchDataSource,
|
|||
nsIRDFDataSource,
|
||||
nsIMsgSearchNotify)
|
||||
|
||||
NS_IMETHODIMP
|
||||
NS_IMETHODIMP
|
||||
nsMsgSearchDataSource::OnSearchHit(nsIMsgDBHdr* aMsgHdr, nsIMsgFolder *folder)
|
||||
{
|
||||
nsresult rv;
|
||||
|
|
Загрузка…
Ссылка в новой задаче