if unversioned, let it through based on trust
svn path=/trunk/KDE/kdelibs/; revision=1161161
This commit is contained in:
parent
eb6c5443e9
commit
c387406230
@ -50,6 +50,11 @@ const char *versionString()
|
|||||||
|
|
||||||
bool isPluginVersionCompatible(unsigned int version)
|
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
|
// we require PLASMA_VERSION_MAJOR and PLASMA_VERSION_MINOR
|
||||||
const quint32 minVersion = PLASMA_MAKE_VERSION(PLASMA_VERSION_MAJOR, 0, 0);
|
const quint32 minVersion = PLASMA_MAKE_VERSION(PLASMA_VERSION_MAJOR, 0, 0);
|
||||||
const quint32 maxVersion = PLASMA_MAKE_VERSION(PLASMA_VERSION_MAJOR, PLASMA_VERSION_MINOR, 60);
|
const quint32 maxVersion = PLASMA_MAKE_VERSION(PLASMA_VERSION_MAJOR, PLASMA_VERSION_MINOR, 60);
|
||||||
|
Loading…
Reference in New Issue
Block a user