diff options
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r-- | qt-ui/divelistview.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp index 886d103c6..a14edd09d 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -301,16 +301,16 @@ void DiveListView::selectionChanged(const QItemSelection& selected, const QItemS void DiveListView::mergeDives() { int i; - struct dive *dive, *maindive = NULL; + struct dive *dive, *maindive = NULL; - for_each_dive(i, dive) { - if (dive->selected) { + for_each_dive(i, dive) { + if (dive->selected) { if (!maindive) maindive = dive; else maindive = merge_two_dives(maindive, dive); - } - } + } + } mainWindow()->refreshDisplay(); } |