From fda3fac1d276952ddac4f5a916339db1940082d5 Mon Sep 17 00:00:00 2001 From: Thomas McGuire Date: Thu, 27 Sep 2012 14:34:09 +0200 Subject: [PATCH] Blackberry: Fix hardware button detection on the BB Dev Alpha The format of the PPS object has changed, it is now prefixed with [n], so be more leninent in parsing to support both formats. Change-Id: I54eb1502a6231acf2dd121531539435c59d7d668 Reviewed-by: Sean Harmer --- src/plugins/platforms/qnx/qqnxbuttoneventnotifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/qnx/qqnxbuttoneventnotifier.cpp b/src/plugins/platforms/qnx/qqnxbuttoneventnotifier.cpp index 0f14168f83d..152b732556f 100644 --- a/src/plugins/platforms/qnx/qqnxbuttoneventnotifier.cpp +++ b/src/plugins/platforms/qnx/qqnxbuttoneventnotifier.cpp @@ -192,7 +192,7 @@ bool QQnxButtonEventNotifier::parsePPS(const QByteArray &ppsData, QHash lines = ppsData.split('\n'); // validate pps object - if (lines.size() == 0 || lines.at(0) != QByteArrayLiteral("@status")) { + if (lines.size() == 0 || !lines.at(0).contains(QByteArrayLiteral("@status"))) { qWarning("QQNX: unrecognized pps object, data=%s", ppsData.constData()); return false; }