Fix: QDateTime.addSecs() creates a new object

This commit is contained in:
Siegfried Siegert 2023-05-12 14:28:30 +02:00
parent de32022b89
commit 6d001f1501
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -225,7 +225,7 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg,
if (calc_price > 0 && total_duration_min > 0)
{
inputDate.addSecs(-(int)ceil(calc_price) * 60);
inputDate = inputDate.addSecs(-(int)ceil(calc_price) * 60);
}
if(price >= min_price && total_duration_min >= minMin)