зеркало из https://github.com/mozilla/pjs.git
Fix bug 166746: if the bookmark title for a linked image is empty, use the url.
This commit is contained in:
Родитель
fd0b877165
Коммит
85ba36e726
|
@ -174,7 +174,7 @@ NSString* const kAddBookmarkItemPrimaryTabKey = @"primary";
|
|||
{
|
||||
NSString* bookmarkTitle = [inItem objectForKey:kAddBookmarkItemTitleKey];
|
||||
bookmarkTitle = [bookmarkTitle stringByReplacingCharactersInSet:[NSCharacterSet controlCharacterSet] withString:@" "];
|
||||
if (!bookmarkTitle)
|
||||
if (!bookmarkTitle || ![bookmarkTitle length])
|
||||
bookmarkTitle = [AddBookmarkDialogController bookmarkUrlForItem:inItem];
|
||||
return bookmarkTitle;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче