Fix folder opening in ActivityListModel
authorMichael Schuster <michael@schuster.ms>
Sun, 22 Dec 2019 05:16:27 +0000 (06:16 +0100)
committerMichael Schuster <48932272+misch7@users.noreply.github.com>
Tue, 24 Dec 2019 06:42:01 +0000 (07:42 +0100)
commitc03bc8540c3554bbff92fb10c95c5d3bd117d6a7
tree3ba906b3630fdb6f510c7d6866ff493c5cd8a13b
parent003acb72547e83d9abfd47f53815d0a02c9c43cc
Fix folder opening in ActivityListModel

After fixing the crash in the previous commit, double-clicking on Activity list rows still didn't work.

This fix partly reverts commit 8546d53b05a76271e245f085d1caa5d405dadb8d in ActivityItemDelegate::PathRole
of ActivityListModel::data, but adds a new check for relPath's existence in line 74.

I'm assuming the previous change there has been done to shorten the code and avoid opening the user's home
folder upon clicking entries which file value is "App Password". The new path-check takes care of that too now.

Signed-off-by: Michael Schuster <michael@schuster.ms>
src/gui/activitylistmodel.cpp