mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-09-20 08:05:40 +00:00
Another Qt 4.6 compatibility fix.
This commit is contained in:
parent
8325b20d36
commit
6889cc2f20
@ -176,7 +176,7 @@ bool QLockFilePrivate::isApparentlyStale() const
|
|||||||
if (::kill(pid, 0) == -1 && errno == ESRCH)
|
if (::kill(pid, 0) == -1 && errno == ESRCH)
|
||||||
return true; // PID doesn't exist anymore
|
return true; // PID doesn't exist anymore
|
||||||
}
|
}
|
||||||
const qint64 age = QFileInfo(fileName).lastModified().msecsTo(QDateTime::currentDateTime());
|
const qint64 age = QFileInfo(fileName).lastModified().secsTo(QDateTime::currentDateTime()) * 1000;
|
||||||
return staleLockTime > 0 && age > staleLockTime;
|
return staleLockTime > 0 && age > staleLockTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user