summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divelistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/divelistview.cpp')
-rw-r--r--desktop-widgets/divelistview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop-widgets/divelistview.cpp b/desktop-widgets/divelistview.cpp
index fbcd96fd6..945a7381e 100644
--- a/desktop-widgets/divelistview.cpp
+++ b/desktop-widgets/divelistview.cpp
@@ -679,10 +679,10 @@ void DiveListView::removeFromTrip()
//TODO: move this to C-code.
int i;
struct dive *d;
- QMap<struct dive*, dive_trip*> divesToRemove;
+ QVector<struct dive *> divesToRemove;
for_each_dive (i, d) {
if (d->selected && d->divetrip)
- divesToRemove.insert(d, d->divetrip);
+ divesToRemove.append(d);
}
if (divesToRemove.isEmpty())
return;
@@ -797,7 +797,7 @@ void DiveListView::deleteDive()
int i;
int lastDiveNr = -1;
- QList<struct dive*> deletedDives; //a list of all deleted dives to be stored in the undo command
+ QVector<struct dive*> deletedDives; //a list of all deleted dives to be stored in the undo command
for_each_dive (i, d) {
if (!d->selected)
continue;