From 030d09e784a85e2f3a4fd40327da15c76de75683 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 23 Apr 2014 14:28:33 -0500 Subject: Prevent Kicker from crashing if no DnD source is available --- kicker/taskbar/taskcontainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kicker/taskbar') diff --git a/kicker/taskbar/taskcontainer.cpp b/kicker/taskbar/taskcontainer.cpp index 860c231bb..326c83cf1 100644 --- a/kicker/taskbar/taskcontainer.cpp +++ b/kicker/taskbar/taskcontainer.cpp @@ -1457,7 +1457,7 @@ void TaskContainer::dragEnterEvent( TQDragEnterEvent* e ) return; } - if ((e->source()->parent() == this->parent()) && TaskDrag::canDecode(e) && READ_MERGED_TASBKAR_SETTING(allowDragAndDropReArrange) && (!READ_MERGED_TASBKAR_SETTING(sortByApp))) + if (e->source() && (e->source()->parent() == this->parent()) && TaskDrag::canDecode(e) && READ_MERGED_TASBKAR_SETTING(allowDragAndDropReArrange) && (!READ_MERGED_TASBKAR_SETTING(sortByApp))) { e->accept(); } -- cgit v1.2.1