diff options
Diffstat (limited to 'stats/pieseries.cpp')
| -rw-r--r-- | stats/pieseries.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/stats/pieseries.cpp b/stats/pieseries.cpp index 9f55d41d2..61579df74 100644 --- a/stats/pieseries.cpp +++ b/stats/pieseries.cpp @@ -265,12 +265,15 @@ void PieSeries::unhighlight() highlighted = -1; } -void PieSeries::selectItemsUnderMouse(const QPointF &pos, bool) +bool PieSeries::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].dives; setSelection(dives, dives.empty() ? nullptr : dives.front()); + return true; } |