summaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-01-08 11:07:27 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-08 07:44:29 -0800
commitf8e86b2f4bd2e2857420e79679bddad2f44e9ed4 (patch)
tree241f6f5d4c20d663d294ab0dfc2061c29e5291e1 /qt-ui/downloadfromdivecomputer.cpp
parentf8af0239ce4d5549305f72b3668d94834f0074ca (diff)
downloadsubsurface-f8e86b2f4bd2e2857420e79679bddad2f44e9ed4.tar.gz
Dive d/l selection UI: Fill the checked vector as true
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index ff42d41be..e9cb94220 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -569,5 +569,6 @@ void DiveImportedModel::setImportedDivesIndexes(int first, int last)
firstIndex = first;
delete[] checkStates;
checkStates = new bool[last-first];
+ memset(checkStates, true, last-first);
endInsertRows();
}