Skip to content
Snippets Groups Projects
Commit deb68535 authored by George Nachman's avatar George Nachman
Browse files

Add some ILog's to diagnose bogus tab drags Nicolas and others reported.

parent 55629350
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -7,6 +7,8 @@
//
 
#import "PSMTabDragAssistant.h"
#import "DebugLogging.h"
#import "PSMTabBarCell.h"
#import "PSMTabStyle.h"
#import "PSMTabDragWindow.h"
Loading
Loading
@@ -506,6 +508,7 @@
}
 
- (void)finishDrag {
ILog(@"Drag of %p finished from\n%@", [self sourceTabBar], [NSThread callStackSymbols]);
if ([[[self sourceTabBar] tabView] numberOfTabViewItems] == 0 &&
[[[self sourceTabBar] delegate] respondsToSelector:@selector(tabView:closeWindowForLastTabViewItem:)]) {
[[[self sourceTabBar] delegate] tabView:[[self sourceTabBar] tabView]
Loading
Loading
@@ -541,6 +544,7 @@
}
 
- (void)draggingBeganAt:(NSPoint)aPoint {
ILog(@"Drag of %p began with current event %@ in window with frame %@ from\n%@", [self sourceTabBar], [NSApp currentEvent], NSStringFromRect(self.sourceTabBar.window.frame), [NSThread callStackSymbols]);
if (_dragTabWindow) {
[_dragTabWindow setFrameTopLeftPoint:aPoint];
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment