minor tweak on the way to getting Cancel / Exit to behave properly in the

Profile Manager UI.  they both set the current profile to "".
This commit is contained in:
sspitzer%netscape.com 1999-10-07 09:01:23 +00:00
parent 95dbb5ec69
commit 5a95c13603

View File

@ -543,7 +543,7 @@ static nsresult main1(int argc, char* argv[])
// this can happen, if the user hits cancel or close in the profile manager dialogs // this can happen, if the user hits cancel or close in the profile manager dialogs
char *currentProfileStr = nsnull; char *currentProfileStr = nsnull;
rv = profileMgr->GetCurrentProfile(&currentProfileStr); rv = profileMgr->GetCurrentProfile(&currentProfileStr);
if (NS_FAILED(rv) || !currentProfileStr) { if (NS_FAILED(rv) || !currentProfileStr || (PL_strlen(currentProfileStr) == 0)) {
return NS_ERROR_FAILURE; return NS_ERROR_FAILURE;
} }
PR_FREEIF(currentProfileStr); PR_FREEIF(currentProfileStr);