diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2016-03-01 00:15:34 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-29 15:42:33 -0800 |
commit | b275e604c13004427e37cc1f42139d2f412158f2 (patch) | |
tree | 475dc3259743a5be55b6f0bc80a9f2300a02edb4 /qt-models/divelistmodel.h | |
parent | abab031ed2547d3bc9183a6e7c4c090ad0548463 (diff) | |
download | subsurface-b275e604c13004427e37cc1f42139d2f412158f2.tar.gz |
templatelayout.cpp: fix potential issue in preprocessTemplate()
The function preprocessTemplate(), did not account well
for indexes in Grantlee variables, such as:
dive.weight# (where # is the index)
dive.cylinder#
To solve the issue the list (QList<QPair<QString, QString> >)
for variables to be replaced is populated will all possible
indexes:
0 - MAX_WEIGHTSYSTEM for weights
0 - MAX_CYLINDERS for cylinders
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divelistmodel.h')
0 files changed, 0 insertions, 0 deletions