@@ -556,7 +556,7 @@ Rectangle {
557 function processPositionChanged(mouse) {
557 function processPositionChanged(mouse) {
558 if (draggedIndex >= 0) {
558 if (draggedIndex >= 0) {
559− if (!selectedItem.dragging) {
559+ if (selectedItem && !selectedItem.dragging) {
560 var distance = Math.max(Math.abs(mouse.x - startX), Math.abs(mouse.y - startY))
560 var distance = Math.max(Math.abs(mouse.x - startX), Math.abs(mouse.y - startY))
561 if (!preDragging && distance > units.gu(1.5)) {
561 if (!preDragging && distance > units.gu(1.5)) {
562 preDragging = true;
562 preDragging = true;