From bef469384bc1675134cccc10633435ecb610a4ed Mon Sep 17 00:00:00 2001 From: Sean Rhea Date: Sat, 12 Dec 2009 22:02:02 -0500 Subject: [PATCH] just call MainWindow::rideItem --- src/AllPlotWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AllPlotWindow.cpp b/src/AllPlotWindow.cpp index 8bd64b743..c23f139d3 100644 --- a/src/AllPlotWindow.cpp +++ b/src/AllPlotWindow.cpp @@ -324,7 +324,7 @@ AllPlotWindow::setEndSelection(double xValue, bool newInterval, QString name) RideFile tmpRide = RideFile(); - QTreeWidgetItem *which = mainwindow->allRideItems()->treeWidget()->selectedItems().first(); + QTreeWidgetItem *which = mainwindow->rideItem(); RideItem *ride = (RideItem*)which; double distance1 = -1;