summaryrefslogtreecommitdiffstats
path: root/core/equipment.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-05 12:03:12 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-06 08:41:39 -0700
commitfb76eb9a1a25387b1963914a9118b84d96c9826e (patch)
tree3b53a028cee96e11f0fdff196d29fc4aa3edefbe /core/equipment.c
parentc7c5dac6211f42aff0414692645ab338c15118ec (diff)
downloadsubsurface-fb76eb9a1a25387b1963914a9118b84d96c9826e.tar.gz
delegates: don't use starts-with search to fetch cylinder/weight data
In the wightsystem-type and cylinder-type delegates, when entering data, when entering known weight- or cylinder-types, some ui fields (notably weight, size and working-pressure) are automatically filled out. The search was using the default flags provided by Qt: starts-with and case-insensitive. This had a few strange effects, when entering a string that is the beginning of a known string (e.g. "AL6" when "AL63" already exists): 1) The wrong data was used if the new string didn't exist. 2) For cylinders it was impossible to create new cylinder types whose name is the starting string of a different type. 3) For weights, the new type was not added to the list of known types. This, however, is no problem, because it will be added by the undo command anyway. A future commit will address that redundancy. Therefore use only the case-insensitive flag (which has to be performed by passing the MatchFixedString flag - very weird). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/equipment.c')
0 files changed, 0 insertions, 0 deletions