Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Unified Diff: chrome/browser/ui/gtk/tabs/tab_gtk.cc

Issue 10809087: Merge 147513 - Change variable name to avoid scoping issues. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/tabs/tab_gtk.cc
===================================================================
--- chrome/browser/ui/gtk/tabs/tab_gtk.cc (revision 148208)
+++ chrome/browser/ui/gtk/tabs/tab_gtk.cc (working copy)
@@ -326,6 +326,11 @@
}
void TabGtk::StartDragging(gfx::Point drag_offset) {
+ // If the drag is processed after the selection change it's possible
+ // that the tab has been deselected, in which case we don't want to drag.
+ if (!IsSelected())
+ return;
+
CreateDragWidget();
GtkTargetList* list = ui::GetTargetListFromCodeMask(ui::CHROME_TAB);
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698