зеркало из https://github.com/mozilla/pjs.git
fix for #73853. allow the user to post news message when there isn't a msg window
around. r/sr=bienvenu
This commit is contained in:
Родитель
4793901dfb
Коммит
70ddf00a80
|
@ -3162,8 +3162,6 @@ nsMsgComposeAndSend::DeliverFileAsNews()
|
|||
if(NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
if (!msgWindow) return NS_ERROR_FAILURE;
|
||||
|
||||
rv = nntpService->PostMessage(fileToPost, mCompFields->GetNewsgroups(), mCompFields->GetNewspostUrl(),
|
||||
uriListener, msgWindow, nsnull);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
|
|
@ -882,9 +882,9 @@ nsNntpService::GenerateNewsHeaderValsForPosting(const char *newsgroupsList, char
|
|||
NS_IMETHODIMP
|
||||
nsNntpService::PostMessage(nsIFileSpec *fileToPost, const char *newsgroupsNames, const char *newspostingUrl, nsIUrlListener * aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aMsgWindow);
|
||||
// aMsgWindow might be null
|
||||
NS_ENSURE_ARG_POINTER(newsgroupsNames);
|
||||
|
||||
|
||||
if (*newsgroupsNames == '\0') return NS_ERROR_INVALID_ARG;
|
||||
|
||||
NS_LOCK_INSTANCE();
|
||||
|
|
Загрузка…
Ссылка в новой задаче