if unversioned, let it through based on trust

svn path=/trunk/KDE/kdelibs/; revision=1161161
This commit is contained in:
Aaron J. Seigo 2010-08-09 20:48:46 +00:00
parent eb6c5443e9
commit c387406230

View File

@ -50,6 +50,11 @@ const char *versionString()
bool isPluginVersionCompatible(unsigned int version)
{
if (version == quint32(-1)) {
// unversioned, just let it through
return true;
}
// we require PLASMA_VERSION_MAJOR and PLASMA_VERSION_MINOR
const quint32 minVersion = PLASMA_MAKE_VERSION(PLASMA_VERSION_MAJOR, 0, 0);
const quint32 maxVersion = PLASMA_MAKE_VERSION(PLASMA_VERSION_MAJOR, PLASMA_VERSION_MINOR, 60);