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:
scott%scott-macgregor.org 2005-03-16 23:33:42 +00:00
parent 54041fe6ee
commit 49e54d30d2

View File

@ -151,7 +151,8 @@ nsSmtpServer::SetDescription(const nsACString &aDescription)
if (!aDescription.IsEmpty())
return mPrefBranch->SetCharPref("description", PromiseFlatCString(aDescription).get());
else
return mPrefBranch->ClearUserPref("description");
mPrefBranch->ClearUserPref("description");
return NS_OK;
}
// if GetPort returns 0, it means default port