add an alert if there is no profile name. bug #15402

git-svn-id: svn://10.0.0.236/trunk@50069 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sspitzer%netscape.com 1999-10-07 00:55:51 +00:00
parent 5fc1175eb9
commit deecdfd350

View File

@ -181,6 +181,10 @@ function processCreateProfileData()
profile = profile.QueryInterface(Components.interfaces.nsIProfile);
try {
//dump("name,dir = " + profName + "," + profDir + "\n");
if (profName == "") {
alert("You need to enter a profile name.");
return;
}
profile.createNewProfile(profName, profDir);
profile.startCommunicator(profName);
}