зеркало из https://github.com/mozilla/gecko-dev.git
Fix the drag and drop of history items.
This commit is contained in:
Родитель
f4a8f3fecc
Коммит
d005e511f0
|
@ -1035,7 +1035,7 @@ NS_IMPL_ISUPPORTS1(nsHistoryObserver, nsIHistoryObserver);
|
||||||
{
|
{
|
||||||
id item = [toDrag objectAtIndex: 0];
|
id item = [toDrag objectAtIndex: 0];
|
||||||
// if we have just one item, we add some more flavours
|
// 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:@" "];
|
NSString *cleanedTitle = [title stringByReplacingCharactersInSet:[NSCharacterSet controlCharacterSet] withString:@" "];
|
||||||
[pboard declareURLPasteboardWithAdditionalTypes:[NSArray array] owner:self];
|
[pboard declareURLPasteboardWithAdditionalTypes:[NSArray array] owner:self];
|
||||||
[pboard setDataForURL:[item url] title:cleanedTitle];
|
[pboard setDataForURL:[item url] title:cleanedTitle];
|
||||||
|
|
Загрузка…
Ссылка в новой задаче