on xenial help sign in
Fix Type errors
commit01fcb7a1d7ce1aa252806aad4a05e95b8a427caf authorRodney Dawes <dobey@ubports.com> dateTue 28 Jul 2020, 10:22 (6 years ago) parent704f0b2
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
@@ -2210,8 +2210,8 @@ FocusScope {
22102210 consumesInput: false
22112211 interactive: false
22122212 focus: false
2213− requestedWidth: appDelegate.requestedWidth
2214− requestedHeight: appDelegate.requestedHeight
2213+ requestedWidth: appDelegate ? appDelegate.requestedWidth : 0
2214+ requestedHeight: appDelegate ? appDelegate.requestedHeight : 0
22152215
22162216 width: units.gu(40)
22172217 height: units.gu(40)