Commit 8303090c authored by Slava Monich's avatar Slava Monich

[ssu] Handle ofono dbus errors. Fixes JB#36623

parent 55f003e0
......@@ -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