diff --git a/src/BestIntervalDialog.cpp b/src/BestIntervalDialog.cpp index b0286f7bf..dbedf415d 100644 --- a/src/BestIntervalDialog.cpp +++ b/src/BestIntervalDialog.cpp @@ -289,7 +289,7 @@ BestIntervalDialog::addClicked() ride->timeToDistance(stop)); // add - QTreeWidgetItem *allIntervals = (QTreeWidgetItem *)mainwindow->allIntervalItems(); + QTreeWidgetItem *allIntervals = mainWindow->mutableIntervalItems(); allIntervals->addChild(last); } }