Commit 253ffd6f authored by sage's avatar sage

Merge branch 'err' into 'master'

Handle ofono dbus errors

There's no ofono in the SDK environment.

See merge request !7
parents 55f003e0 8303090c
......@@ -9,7 +9,7 @@
#include <QTextStream>
#include <QDir>
#include <QDBusMessage>
#include <QDBusReply>
#include <QDBusConnection>
#include <QDBusArgument>
......@@ -262,13 +262,12 @@ ofonoGetImeis()
{
QStringList result;
QDBusMessage reply = QDBusConnection::systemBus().call(
QDBusReply<QStringList> reply = QDBusConnection::systemBus().call(
QDBusMessage::createMethodCall("org.ofono", "/",
"org.nemomobile.ofono.ModemManager", "GetIMEI"));
QList<QVariant> arguments = reply.arguments();
if (arguments.count() > 0) {
result = arguments.at(0).toStringList();
if (reply.isValid()) {
result = reply.value();
}
return result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment