From f8e86b2f4bd2e2857420e79679bddad2f44e9ed4 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 8 Jan 2015 11:07:27 -0200 Subject: Dive d/l selection UI: Fill the checked vector as true Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/downloadfromdivecomputer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui') 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(); } -- cgit v1.2.3-70-g09d2