On Montag, 15. Oktober 2012 15:37:23 CEST, Jan Kundrát wrote:

>> +    static QDateTime lastVersion;
>> +    QDateTime lastTouched(file.exists() ? 
>> QFileInfo(file).lastModified() : QDateTime());
>> +    if (lastVersion < lastTouched) {
>
> If I'm reading this correctly, this will evaluate to true every 
> time this funciton is called when the file is missing.
Nope, lastVersion and lastTouched default to the same (invalid) null time, 
hence (lastVersion < lastTouched) is always false (they're equal)

Feel free to test, i did ;-)


Cheers,
Thomas

Reply via email to