Fix CppCheck in idle.cpp

/retroshare-gui/src/idle/idle.cpp:118: warning:
Cppcheck(knownConditionTrueFalse): Condition 't>0' is always true
This commit is contained in:
Phenom 2017-08-15 19:00:17 +02:00 committed by csoler
parent 589e61ff67
commit deb6693248

View File

@ -115,9 +115,9 @@ int Idle::secondsIdle()
d->startTime = beginIdle;
}
// beginIdle earlier than startTime?
else if(t > 0) {
// do nothing
}
//else if(t > 0) { //t is always > 0
// // do nothing
//}
// how long have we been idle?
int idleTime = d->startTime.secsTo(QDateTime::currentDateTime());