summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2024-11-19 14:26:25 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2024-11-19 14:26:35 +0100
commit42aa6758872eed147d397c439ec7166cb2720d67 (patch)
tree0dac53f6b61da445109b46bdfd9b0904fe8bf128 /app/main.cpp
parentfc3a8130dd84896650f6077777e90f466d51bf6c (diff)
Import Qt6 conversion patch
Import the patches for the demo applications into the app repos. Bug-AGL: SPEC-5294 Change-Id: I7d910fdb17208d66c71c5b0264ad0f6a83ff8239 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/main.cpp b/app/main.cpp
index bf82588..35b4c0e 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -78,9 +78,10 @@ int main(int argc, char *argv[])
// active auto-connect that was in agl-service-bluetooth. The latter is
// now dependent on this application being run until further re-architecting
// takes place.
- Network *network = new Network(true, context);
- network->power(true, QString("bluetooth"));
- context->setContextProperty("network", network);
+ // Network *network = new Network(true, context);
+ // network->power(true, QString("bluetooth"));
+ QObject *network = new QObject(context); // prevent crash
+ context->setContextProperty("network", network);
engine.load(QUrl(QStringLiteral("qrc:/Settings.qml")));