зеркало из https://github.com/mozilla/pjs.git
Bug #286317 --> SMTP change impossible without description
because ClearPref is throwing an exception for pref values that have no value. sr=neil
This commit is contained in:
Родитель
23dd6ffaee
Коммит
a521518a6a
|
@ -151,7 +151,8 @@ nsSmtpServer::SetDescription(const nsACString &aDescription)
|
||||||
if (!aDescription.IsEmpty())
|
if (!aDescription.IsEmpty())
|
||||||
return mPrefBranch->SetCharPref("description", PromiseFlatCString(aDescription).get());
|
return mPrefBranch->SetCharPref("description", PromiseFlatCString(aDescription).get());
|
||||||
else
|
else
|
||||||
return mPrefBranch->ClearUserPref("description");
|
mPrefBranch->ClearUserPref("description");
|
||||||
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if GetPort returns 0, it means default port
|
// if GetPort returns 0, it means default port
|
||||||
|
|
Загрузка…
Ссылка в новой задаче