Fix another DBus connection in Kirigami app

Summary: When a DevicePage is created from FindDevicePage the device is not passed correctly, resulting in some device is null warnings. The pair button still does not work, but it seems to be another issue.

Test Plan: I could set the button text to the device id, so the device is passed correctly. The button still does not work as intended though.

Reviewers: #kde_connect

Subscribers: apol, #kde_connect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D12506
This commit is contained in:
Nicolas Fella 2018-04-28 00:25:05 +02:00
parent 88d0e72667
commit aa5aeedf0a

View file

@ -26,6 +26,11 @@ import org.kde.kdeconnect 1.0
Kirigami.Page
{
Component {
id: deviceComp
DevicePage {}
}
objectName: "FindDevices"
title: i18n("Pair")
ScrollView {
@ -58,7 +63,7 @@ Kirigami.Page
onClicked: {
pageStack.clear()
pageStack.push(
"qrc:/qml/DevicePage.qml",
deviceComp,
{currentDevice: device}
);
}