Skip to content

Commit

Permalink
bug fix total time calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmo16 committed Mar 21, 2020
1 parent 023183d commit 200aacd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ namespace View
QTime totalTime( 0, 0 );
for ( auto& workdayString : m_workDaysStrings )
{
totalTime.addMSecs( QTime::fromString( workdayString, "H'h'mm" ).msecsSinceStartOfDay() );
totalTime = totalTime.addMSecs( QTime::fromString( workdayString, "H'h'mm" ).msecsSinceStartOfDay() );
}
m_totalWorkTime = totalTime;
}
Expand Down

0 comments on commit 200aacd

Please sign in to comment.