minor tweak on the way to getting Cancel / Exit to behave properly in the
Profile Manager UI. they both set the current profile to "". git-svn-id: svn://10.0.0.236/trunk@50093 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
bde00ceef7
commit
7ef56b5288
@ -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
|
||||
char *currentProfileStr = nsnull;
|
||||
rv = profileMgr->GetCurrentProfile(¤tProfileStr);
|
||||
if (NS_FAILED(rv) || !currentProfileStr) {
|
||||
if (NS_FAILED(rv) || !currentProfileStr || (PL_strlen(currentProfileStr) == 0)) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
PR_FREEIF(currentProfileStr);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user