mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-16 19:48:46 -04:00
Another Qt 4.6 compatibility fix.
This commit is contained in:
parent
8325b20d36
commit
6889cc2f20
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ bool QLockFilePrivate::isApparentlyStale() const
|
|||
if (::kill(pid, 0) == -1 && errno == ESRCH)
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue