Bug 334399: icons for sherlock plugins loaded from non-profile locations aren't loaded, r=mconnor

This commit is contained in:
gavin%gavinsharp.com 2006-04-19 21:10:49 +00:00
Родитель 6fd21df866
Коммит b0d36473d6
1 изменённых файлов: 9 добавлений и 8 удалений

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

@ -1753,14 +1753,15 @@ SearchService.prototype = {
continue;
}
// If we have a writable Sherlock plugin, try to convert it
if (fileExtension == SHERLOCK_FILE_EXT && isWritable) {
try {
this._convertSherlockFile(addedEngine, fileURL.fileBaseName);
} catch (ex) {
LOG("_loadEngines: Failed to convert: " + fileURL.path + "\n" + ex);
// The engine couldn't be converted, mark it as read-only
addedEngine._readOnly = true;
if (fileExtension == SHERLOCK_FILE_EXT) {
if (isWritable) {
try {
this._convertSherlockFile(addedEngine, fileURL.fileBaseName);
} catch (ex) {
LOG("_loadEngines: Failed to convert: " + fileURL.path + "\n" + ex);
// The engine couldn't be converted, mark it as read-only
addedEngine._readOnly = true;
}
}
// If the engine still doesn't have an icon, see if we can find one