mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 06:05:44 +00:00
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:
parent
95dbb5ec69
commit
5a95c13603
@ -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(¤tProfileStr);
|
rv = profileMgr->GetCurrentProfile(¤tProfileStr);
|
||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user