From cc012c1fa6ffca2c5c93fb79415b9a806cb3632c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 2 Jun 2014 12:36:05 -0700 Subject: Fix addStop to work as slot again In order to call this as slot it needs to have defaults for all arguments. So we need to change the gasmix into a pointer - which is actually better as this allows to easily pass a NULL pointer when we want to continue to use the previous gas. Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'qt-ui/profile') diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 3d740ca1b..ccdbe1888 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -605,8 +605,7 @@ void ProfileWidget2::mouseDoubleClickEvent(QMouseEvent *event) int minutes = rint(timeAxis->valueAt(mappedPos) / 60); int milimeters = rint(profileYAxis->valueAt(mappedPos) / M_OR_FT(1, 1)) * M_OR_FT(1, 1); - struct gasmix ignore = { 0 }; - plannerModel->addStop(milimeters, minutes * 60, ignore, 0, true, true); + plannerModel->addStop(milimeters, minutes * 60, 0, 0, true); } } -- cgit v1.2.3-70-g09d2