aboutsummaryrefslogtreecommitdiffstats
path: root/profile-widget/tankitem.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-26 18:35:48 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-04-02 13:53:23 -0700
commit752724aa1e077ba491a7e4f687e6a1d9b787b61d (patch)
tree9117f78417fb71ef59bc9c554f00e1344d68ae3a /profile-widget/tankitem.h
parent1ec0790d504d8a9d5e6694afff04f9ae92d01af8 (diff)
downloadsubsurface-752724aa1e077ba491a7e4f687e6a1d9b787b61d.tar.gz
profile: fix logic in keyDeleteAction()
The code took care to not delete planner-points when no points are selected. However, it assumed that all selected objects are planner-points. But then it checked whether the selected object actually is a planner-point. So which is it? Remove the outter check for an empty selection. This makes things more logical and more robust, should there ever be other objects that can be selected. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/tankitem.h')
0 files changed, 0 insertions, 0 deletions