summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-11-27 12:36:20 +0100
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-27 22:40:16 +0100
commit8a92484b0cc1cd2e2f0e026ef1982a56feccd26f (patch)
tree025c3083c4ee8f4c7aa71081835e9b9eb958666d /qt-models
parent4e36b2509ce1dc98724282a3e485a20ebacb17e3 (diff)
downloadsubsurface-8a92484b0cc1cd2e2f0e026ef1982a56feccd26f.tar.gz
Add debug function dump_cylinders
This function can be used to dump print all cylinder data. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/cylindermodel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp
index e61926084..3979b13b6 100644
--- a/qt-models/cylindermodel.cpp
+++ b/qt-models/cylindermodel.cpp
@@ -488,6 +488,9 @@ void CylindersModel::updateDive()
{
clear();
rows = 0;
+#ifdef DEBUG_CYL
+ dump_cylinders(&displayed_dive, true);
+#endif
for (int i = 0; i < MAX_CYLINDERS; i++) {
if (show_cylinder(&displayed_dive, i))
rows = i + 1;