bug 149176, profile manager doesn't appear when trying to create a 2nd profile and turbo is active, r=law, sr=ben

This commit is contained in:
morse%netscape.com 2002-06-07 12:17:23 +00:00
Родитель 6e6bf977e5
Коммит 76bec835f6
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -1594,6 +1594,18 @@ nsNativeAppSupportWin::HandleRequest( LPBYTE request, PRBool newWindow ) {
return;
}
// try for the "-profilemanager" argument, in which case we want the
// profile manager to appear, but only if there are no windows open
rv = args->GetCmdLineValue( "-profilemanager", getter_Copies(arg));
if ( NS_SUCCEEDED(rv) && (const char*)arg ) { // -profilemanager on command line
nsCOMPtr<nsIDOMWindowInternal> window;
GetMostRecentWindow(0, getter_AddRefs(window));
if (!window) { // there are no open windows
mForceProfileStartup = PR_TRUE;
}
}
// try for the "-kill" argument, to shut down the server
rv = args->GetCmdLineValue( "-kill", getter_Copies(arg));
if ( NS_SUCCEEDED(rv) && (const char*)arg ) {