зеркало из https://github.com/mozilla/pjs.git
Fix bug 319559: dragging a bookmark folder over the content view should replace tabs, rather than append (just like dragging over the tab). Patch by Chris Lawson, r=Julian Pellico.
Also fix build warning.
This commit is contained in:
Родитель
056ec9a600
Коммит
ab00ba69a6
|
@ -398,7 +398,7 @@ NSString* const kTabBarBackgroundDoubleClickedNotification = @"kTabBarBackground
|
|||
if ([aBookmark isKindOfClass:[Bookmark class]])
|
||||
return [self handleDropOnTab:overTabViewItem overContent:overContentArea withURL:[aBookmark url]];
|
||||
else if ([aBookmark isKindOfClass:[BookmarkFolder class]]) {
|
||||
[[[self window] windowController] openURLArray:[aBookmark childURLs] tabOpenPolicy:(overTabViewItem ? eReplaceTabs : eAppendTabs) allowPopups:NO];
|
||||
[[[self window] windowController] openURLArray:[aBookmark childURLs] tabOpenPolicy:((overTabViewItem || overContentArea) ? eReplaceTabs : eAppendTabs) allowPopups:NO];
|
||||
return YES;
|
||||
}
|
||||
} else if ([draggedItems count] > 1) {
|
||||
|
|
|
@ -37,6 +37,8 @@
|
|||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#import "mozView.h"
|
||||
#import "NSWorkspace+Utils.h"
|
||||
|
||||
#import "BrowserWindow.h"
|
||||
#import "BrowserWindowController.h"
|
||||
#import "AutoCompleteTextField.h"
|
||||
|
|
Загрузка…
Ссылка в новой задаче