From 713c89ee2044fecee6162ce5b7d60c0b4d802cf5 Mon Sep 17 00:00:00 2001 From: "pinkerton%aol.net" Date: Sat, 5 Mar 2005 22:07:45 +0000 Subject: [PATCH] sometimes mDragDest wasn't set, causing crashes or drags to be ignored when dragging to the tab bar (bug 269995, 269994) --- camino/src/browser/BrowserTabBarView.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/camino/src/browser/BrowserTabBarView.mm b/camino/src/browser/BrowserTabBarView.mm index 2b10b883f35a..fc4682648351 100644 --- a/camino/src/browser/BrowserTabBarView.mm +++ b/camino/src/browser/BrowserTabBarView.mm @@ -522,6 +522,8 @@ static const int kOverflowButtonMargin = 1; -(BOOL)prepareForDragOperation:(id )sender { + if (!mDragDest) + return [mTabView prepareForDragOperation:sender]; BOOL rv = [mDragDest prepareForDragOperation: sender]; if (!rv) { if (mDragDestButton)