Use -edit instead of -editor as the editor flag
git-svn-id: svn://10.0.0.236/trunk@36344 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -410,7 +410,7 @@ int main(int argc, char* argv[])
|
||||
|
||||
#endif // defined(NS_USING_PROFILES)
|
||||
|
||||
rv = cmdLineArgs->GetCmdLineValue("-editor", &cmdResult);
|
||||
rv = cmdLineArgs->GetCmdLineValue("-edit", &cmdResult);
|
||||
if (NS_SUCCEEDED(rv))
|
||||
{
|
||||
if (cmdResult && (strcmp("1",cmdResult)==0)) {
|
||||
@@ -419,6 +419,20 @@ int main(int argc, char* argv[])
|
||||
withArgs = "chrome://editor/content/EditorInitPage.html";
|
||||
}
|
||||
}
|
||||
// Check for -editor -- this may eventually go away
|
||||
if (nsnull == urlstr)
|
||||
{
|
||||
rv = cmdLineArgs->GetCmdLineValue("-editor", &cmdResult);
|
||||
if (NS_SUCCEEDED(rv))
|
||||
{
|
||||
printf("WARNING -- -editor is going away, use -edit instead!\n");
|
||||
if (cmdResult && (strcmp("1",cmdResult)==0)) {
|
||||
urlstr = "chrome://editor/content/";
|
||||
useArgs = PR_TRUE;
|
||||
withArgs = "chrome://editor/content/EditorInitPage.html";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (nsnull == urlstr)
|
||||
{
|
||||
rv = cmdLineArgs->GetCmdLineValue("-mail", &cmdResult);
|
||||
|
||||
Reference in New Issue
Block a user