From 89ca1039539c72a3ac7972272b5fc51d017e5ac2 Mon Sep 17 00:00:00 2001 From: "blizzard%redhat.com" Date: Fri, 9 Jun 2000 03:05:18 +0000 Subject: [PATCH] fix for bug #41930. make sure to reset the drag state to PR_FALSE if getting the selection failed. this should fix dragging to the composer on linux. r=pavlov,a=brendan --- widget/src/gtk/nsDragService.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/widget/src/gtk/nsDragService.cpp b/widget/src/gtk/nsDragService.cpp index 116dc7aaf2a3..83c8ea324602 100644 --- a/widget/src/gtk/nsDragService.cpp +++ b/widget/src/gtk/nsDragService.cpp @@ -414,6 +414,8 @@ NS_IMETHODIMP nsDragService::SetDataReceived (GtkWidget *aWidget, #ifdef DEBUG_DD g_print("failed to get data. selection_data->length was %d\n", selection_data->length); #endif + // if our selection failed, we aren't dragging anymore. + mDoingDrag = PR_FALSE; } return NS_OK; }