summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2014-04-23 14:28:33 -0500
committerTimothy Pearson <[email protected]>2014-04-23 14:28:33 -0500
commit030d09e784a85e2f3a4fd40327da15c76de75683 (patch)
tree748fcc4fdf9ff7f5e2fadaddef93b4002fa27af3
parent1e170d411c6679af09864192b3d8354c7385d7cf (diff)
downloadtdebase-030d09e784a85e2f3a4fd40327da15c76de75683.tar.gz
tdebase-030d09e784a85e2f3a4fd40327da15c76de75683.zip
Prevent Kicker from crashing if no DnD source is available
-rw-r--r--kicker/taskbar/taskcontainer.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}