summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-10-11 21:28:20 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-10-11 21:28:20 +0200
commitc86b5a7e147f6a07016677d1e7f71addbd75abb7 (patch)
tree1a1c47dfd02619699aaff719ddd77487985917eb /plugins
parent135862768cfcf6fda9434725de3edd115df071a4 (diff)
fixed 100% CPU and playlist lock after appending files from fm to the very end of playlist causing autoscroll
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkui/ddblistview.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/gtkui/ddblistview.c b/plugins/gtkui/ddblistview.c
index 4a120cd4..8991e2bc 100644
--- a/plugins/gtkui/ddblistview.c
+++ b/plugins/gtkui/ddblistview.c
@@ -943,6 +943,9 @@ ddb_listview_list_drag_data_received (GtkWidget *widget,
gpointer user_data)
{
DdbListview *ps = DDB_LISTVIEW (g_object_get_data (G_OBJECT (widget), "owner"));
+ ps->scroll_direction = 0; // interrupt autoscrolling, if on
+ ps->scroll_active = 0;
+ ps->drag_motion_y = -1;
if (!ps->binding->external_drag_n_drop || !ps->binding->drag_n_drop) {
gtk_drag_finish (drag_context, TRUE, FALSE, time);
return;