repay some desbt in ActivityListModel::data
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 13 Feb 2023 18:12:58 +0000 (19:12 +0100)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 17 May 2023 16:16:08 +0000 (18:16 +0200)
commitbc9b7a05f4dafec3c0812cfc1f3c6d3d5dd702f1
treec18d189d092ba1216be1ecb01728a32a7cbaa5ad
parent9a90f15ceb57a84219aa14783d710d7f0ee679fc
repay some desbt in ActivityListModel::data

only valid index are sent to QAbstractItemModel::data

we may want to do more checks in debug mode, let's do it

if we are going to show data, let's use a const variable to contain the
current activity item

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/gui/tray/activitylistmodel.cpp