diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-09-12 12:51:34 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-09-12 10:36:36 -0700 |
commit | 72312bec2f4dcde3150a2d989bd729237c704d66 (patch) | |
tree | e167e4123847d0c5587c765346eb5868e2344a24 /.github | |
parent | 762c5276fd7e49ec5f4e76973c1159b31e4fec63 (diff) | |
download | subsurface-72312bec2f4dcde3150a2d989bd729237c704d66.tar.gz |
desktop: on weight type change, don't overwrite weight if already set
When importing from other software, it happens that weights are imported
without their type. When the user changes the type, the imported weight
is overwritten, which is not exactly a friendly behavior.
On the other hand, when changing the type after creation of a weight
entry, it is preferrable to set a default weight. This is convenient
for people who commonly use the same weight.
As a compromise, set the default weight only if it was unset. We
recognize this by a weight value of 0 g.
Fixes #2938
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions