summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-11-01 15:25:14 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-11-01 19:22:41 -0700
commitfcf72b38a4430c56b977ad14aea474de7e6af599 (patch)
tree0aee961f4e5f8170ea9fd314cc43a04e8c2a33b2
parent4508f46e8b3b42f2d062566ecbc741daf5cf1338 (diff)
libqtappfw: make check for event message case insensitive
Change-Id: I04f54d19ecddcc6ed87de8f360dd61710ec28b34 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r--messageengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/messageengine.cpp b/messageengine.cpp
index c82670b..3923fe4 100644
--- a/messageengine.cpp
+++ b/messageengine.cpp
@@ -103,11 +103,11 @@ void MessageEngine::onTextMessageReceived(QString jsonStr)
}
case Event: {
QStringList api_str_list = msg[1].toString().split(QRegExp("/"));
- QString api = api_str_list[0];
+ QString api = api_str_list[0].toLower();
// FIXME: This should be rewritten using a factory class with a
// parser parameter to remove API specific handling here
- if (api == "Bluetooth-Manager") {
+ if (api == "bluetooth-manager") {
message = new BluetoothMessage;
type = BluetoothEventMessage;
} else if (api == "bluetooth-pbap") {