summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2020-06-09 23:44:09 +0200
committerRaquel Medina <raquel.medina@konsulko.com>2020-06-10 16:16:08 +0200
commit33318f7066e60c717ec14fe7a3bef25a6414ac36 (patch)
treeefd1ecce1fc1b23deb8cd05bacd27eaa2f9813ed /app/main.cpp
parentb70f1326f483fc3e42a95f792c63d8d80ff0ce32 (diff)
fix segfault on task removal from list
This commit fixes a segfault which manifests while processing a received message to update the list of active processes. This segfault always happens on removal of a process and sometimes an error associated with the model size for the TableView is also displayed on the journal. The fix includes the following changes: - add checks on the received ResponseMessage to discard invalid messages; - align with other libqtappfw-core clients which use QJsonObject::value() returning QJsonValue, instead of QJsonObject::operator[] returning QJsonValueRef; - create local list of tasks using emplacement instead of insertion; - simplify matching & updating old tasklist against new one; remove flag and use std algorithm find_if with lambda. Bug-AGL: SPEC-3402 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: Ic6bfaefed3fe91a8d29ef622ba7957b5bed5018a
Diffstat (limited to 'app/main.cpp')
0 files changed, 0 insertions, 0 deletions