Fix: QDateTime.addSecs() creates a new object
This commit is contained in:
parent
de32022b89
commit
6d001f1501
@ -225,7 +225,7 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg,
|
|||||||
|
|
||||||
if (calc_price > 0 && total_duration_min > 0)
|
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)
|
if(price >= min_price && total_duration_min >= minMin)
|
||||||
|
Loading…
Reference in New Issue
Block a user