diff options
Diffstat (limited to 'stats/boxseries.cpp')
-rw-r--r-- | stats/boxseries.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/stats/boxseries.cpp b/stats/boxseries.cpp index 3d2de0e82..5362aa7af 100644 --- a/stats/boxseries.cpp +++ b/stats/boxseries.cpp @@ -143,12 +143,15 @@ void BoxSeries::unhighlight() highlighted = -1; } -void BoxSeries::selectItemsUnderMouse(const QPointF &pos, bool) +bool BoxSeries::selectItemsUnderMouse(const QPointF &pos, bool) { int index = getItemUnderMouse(pos); - if (index < 0) - return setSelection({}, nullptr); + if (index < 0) { + setSelection({}, nullptr); + return false; + } const std::vector<dive *> &dives = items[index]->q.dives; setSelection(dives, dives.empty() ? nullptr : dives.front()); + return true; } |