From 8e0aed8970ad28b688b12f1ed8209837861548a1 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 28 Sep 2020 19:50:49 +0200 Subject: [PATCH] Fix entering uncategorized when there's only 1 thing --- nymea-app/ui/delegates/InterfaceTile.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nymea-app/ui/delegates/InterfaceTile.qml b/nymea-app/ui/delegates/InterfaceTile.qml index 65575275..b9b71d69 100644 --- a/nymea-app/ui/delegates/InterfaceTile.qml +++ b/nymea-app/ui/delegates/InterfaceTile.qml @@ -54,7 +54,11 @@ MainPageTile { var page; // Only one item? Go streight to the thing page if (devicesProxy.count === 1) { - page = NymeaUtils.interfaceListToDevicePage([iface.name]); + if (!iface) { + page = "GenericDevicePage.qml"; + } else { + page = NymeaUtils.interfaceListToDevicePage([iface.name]); + } pageStack.push(Qt.resolvedUrl("../devicepages/" + page), {thing: devicesProxy.get(0)}) return; }