mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-03-16 03:16:05 -04: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)
|
||||
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…
x
Reference in New Issue
Block a user