Fix the drag and drop of history items.

This commit is contained in:
smfr%smfr.org 2005-01-19 07:04:09 +00:00
parent f4a8f3fecc
commit d005e511f0

View File

@ -1035,7 +1035,7 @@ NS_IMPL_ISUPPORTS1(nsHistoryObserver, nsIHistoryObserver);
{
id item = [toDrag objectAtIndex: 0];
// if we have just one item, we add some more flavours
NSString* title = [item name];
NSString* title = [item title];
NSString *cleanedTitle = [title stringByReplacingCharactersInSet:[NSCharacterSet controlCharacterSet] withString:@" "];
[pboard declareURLPasteboardWithAdditionalTypes:[NSArray array] owner:self];
[pboard setDataForURL:[item url] title:cleanedTitle];