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

Require check-in time to be before the check-out time

That assumption is made in many places, so don't accept input that
violates that.
parent 4b58675a
......@@ -34,7 +34,7 @@ using namespace KItinerary;
static bool filterLodgingReservation(const LodgingReservation &res)
return res.checkinTime().isValid() && res.checkoutTime().isValid();
return res.checkinTime().isValid() && res.checkoutTime().isValid() && res.checkinTime() <= res.checkoutTime();
static bool filterAirport(const Airport &airport)
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