followup for Bug 392193 - first run migration / import from ie, opera and safari browser can be slow, migration should use "run in batch". Fix Opera migrator regression. r=sdwilsh

This commit is contained in:
Marco Bonardo 2009-05-14 14:11:56 +02:00
parent cfc1954b44
commit 40d2e8bc03

View File

@ -1216,7 +1216,11 @@ nsOperaProfileMigrator::CopySmartKeywords(nsINavBookmarksService* aBMS,
section.AppendInt(sectionIndex++);
rv = parser.GetString(section.get(), "Name", name);
if (NS_FAILED(rv) || name.IsEmpty())
if (NS_FAILED(rv)) {
// No more smart keywords found, stop parsing the file.
break;
}
if (name.IsEmpty())
continue;
rv = parser.GetString(section.get(), "URL", url);