summaryrefslogtreecommitdiffstats
path: root/profile-widget/divehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'profile-widget/divehandler.cpp')
-rw-r--r--profile-widget/divehandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/divehandler.cpp b/profile-widget/divehandler.cpp
index 4a5088964..2f06ea661 100644
--- a/profile-widget/divehandler.cpp
+++ b/profile-widget/divehandler.cpp
@@ -22,7 +22,7 @@ DiveHandler::DiveHandler(const struct dive *d) : dive(d)
int DiveHandler::parentIndex()
{
ProfileWidget2 *view = qobject_cast<ProfileWidget2 *>(scene()->views().first());
- return view->handles.indexOf(this);
+ return view->handleIndex(this);
}
void DiveHandler::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)