on xenial help sign in
Fix Type errors
commit74cbb9f902f4b093c7d6fc2751abfcb587fd04f3 authorRodney Dawes <dobey@ubports.com> dateTue 28 Jul 2020, 10:22 (6 years ago) parentc5ae47c
2 files changed+3−3
qml/Launcher/LauncherPanel.qml+1−1 qml/Stage/Stage.qml+2−2
qml/Launcher/LauncherPanel.qml+1−1
@@ -556,7 +556,7 @@ Rectangle {
556556
557557 function processPositionChanged(mouse) {
558558 if (draggedIndex >= 0) {
559− if (!selectedItem.dragging) {
559+ if (selectedItem && !selectedItem.dragging) {
560560 var distance = Math.max(Math.abs(mouse.x - startX), Math.abs(mouse.y - startY))
561561 if (!preDragging && distance > units.gu(1.5)) {
562562 preDragging = true;
qml/Stage/Stage.qml+2−2
@@ -2207,8 +2207,8 @@ FocusScope {
22072207 consumesInput: false
22082208 interactive: false
22092209 focus: false
2210− requestedWidth: appDelegate.requestedWidth
2211− requestedHeight: appDelegate.requestedHeight
2210+ requestedWidth: appDelegate ? appDelegate.requestedWidth : 0
2211+ requestedHeight: appDelegate ? appDelegate.requestedHeight : 0
22122212
22132213 width: units.gu(40)
22142214 height: units.gu(40)