mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Fix absync bug 1425 - add record key for migrated address book. r=rhp
This commit is contained in:
parent
f483bf8c92
commit
e57fd5b0a3
@ -954,6 +954,8 @@ nsresult nsAddrDatabase::UpdateLastRecordKey()
|
||||
pDataRow->CutStrongRef(GetEnv());
|
||||
return NS_OK;
|
||||
}
|
||||
else if (!pDataRow)
|
||||
err = InitLastRecorKey();
|
||||
else
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
return err;
|
||||
@ -2566,7 +2568,13 @@ NS_IMETHODIMP nsAddrDatabase::GetNewListRow(nsIMdbRow * *newRow)
|
||||
NS_IMETHODIMP nsAddrDatabase::AddCardRowToDB(nsIMdbRow *newRow)
|
||||
{
|
||||
if (m_mdbPabTable)
|
||||
return m_mdbPabTable->AddRow(GetEnv(), newRow);
|
||||
{
|
||||
nsresult err = NS_OK;
|
||||
err = m_mdbPabTable->AddRow(GetEnv(), newRow);
|
||||
if (NS_SUCCEEDED(err))
|
||||
AddRecordKeyColumnToRow(newRow);
|
||||
return err;
|
||||
}
|
||||
else
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user