Ignore:
Timestamp:
Jun 18, 2013, 12:09:06 AM (12 years ago)
Author:
Dmitry A. Kuminov
Message:

core: Cache Qt plugin size in the registry together with other info.

This makes sure that the plugin is revalidated not only when its timestamp changes
but also when its size changes (which is a case e.g. when a partially downloaded
or unpacked file gets picked up by Qt and then a complete version that has the same
timestamp replaces the broken one).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/plugin/qlibrary.cpp

    r1152 r1154  
    635635    reg = settings->value(regkey).toStringList();
    636636#endif
    637     if (reg.count() == 4 && lastModified == reg.at(3)) {
     637    if (reg.count() == )) {
    638638        qt_version = reg.at(0).toUInt(0, 16);
    639639        debug = bool(reg.at(1).toInt());
     
    733733                    << QString::number((int)debug)
    734734                    << QLatin1String(key)
    735                     << lastModified;
     735                    << lastModified
     736                    << QString::number(fileinfo.size());
    736737            settings->setValue(regkey, queried);
    737738        }
Note: See TracChangeset for help on using the changeset viewer.