diff options
Diffstat (limited to 'desktop-widgets/command_divelist.cpp')
-rw-r--r-- | desktop-widgets/command_divelist.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/desktop-widgets/command_divelist.cpp b/desktop-widgets/command_divelist.cpp index cf8feed0b..f45202aa9 100644 --- a/desktop-widgets/command_divelist.cpp +++ b/desktop-widgets/command_divelist.cpp @@ -141,14 +141,6 @@ std::vector<dive *> DiveListBase::addDives(DivesAndTripsToAdd &toAdd) std::vector<dive *> res; res.resize(toAdd.dives.size()); - // First, tell the filters that new dives are added. We do this here - // instead of later by signals, so that the filter can set the - // checkboxes of the new rows to its liking. The added dives will - // then appear in the correct shown/hidden state. - QVector<dive *> divesForFilter; - for (const DiveToAdd &entry: toAdd.dives) - divesForFilter.push_back(entry.dive.get()); - // Now, add the dives // Note: the idiomatic STL-way would be std::transform, but let's use a loop since // that is closer to classical C-style. |