Bug 144930 - Profile dialog pops up on every launch with QuickLaunch. Regression from bug 76431. r=rjesup@wgate.com/sr=brendan@mozilla.org

This commit is contained in:
ccarlen%netscape.com 2002-05-16 19:16:31 +00:00
Родитель e4ef1b46a1
Коммит 840aec7377
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -535,6 +535,12 @@ nsProfile::LoadDefaultProfileDir(nsCString & profileURLStr, PRBool canInteract)
}
else if (numProfiles == 1)
{
// If we get here and the 1 profile is the current profile,
// which can happen with QuickLaunch, there's no need to do
// any futher work.
if (mCurrentProfileAvailable)
return NS_OK;
// Make sure the profile dir exists. If not, we need the UI
nsCOMPtr<nsIFile> curProfileDir;
PRBool exists = PR_FALSE;