Commit a4584692 authored by Volker Krause's avatar Volker Krause
Browse files

Consider TaxiReservation as a location change

parent b2a9146a
......@@ -41,7 +41,7 @@ bool LocationUtil::isLocationChange(const QVariant &res)
}
return !isSameLocation(pickup, dropoff);
}
return JsonLd::isA<FlightReservation>(res) || JsonLd::isA<TrainReservation>(res) || JsonLd::isA<BusReservation>(res);
return JsonLd::isA<FlightReservation>(res) || JsonLd::isA<TrainReservation>(res) || JsonLd::isA<BusReservation>(res) || JsonLd::isA<TaxiReservation>(res);
}
QVariant LocationUtil::arrivalLocation(const QVariant &res)
......@@ -75,6 +75,9 @@ QVariant LocationUtil::departureLocation(const QVariant &res)
if (JsonLd::isA<RentalCarReservation>(res)) {
return res.value<RentalCarReservation>().pickupLocation();
}
if (JsonLd::isA<TaxiReservation>(res)) {
return res.value<TaxiReservation>().pickupLocation();
}
return {};
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment