fixed detection of win8 notification on win8.1

This commit is contained in:
Patrick von Reth 2014-03-23 17:08:55 +01:00
parent a3a25e4af9
commit 9928a6040a
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ bool SnoreCore::setPrimaryNotificationBackend()
{
Q_D(SnoreCore);
#ifdef Q_OS_WIN
if(QSysInfo::windowsVersion() == QSysInfo::WV_WINDOWS8 && d->setBackendIfAvailible("Windows 8"))
if(QSysInfo::windowsVersion() >= QSysInfo::WV_WINDOWS8 && d->setBackendIfAvailible("Windows 8"))
{
return true;
}

View File

@ -28,7 +28,7 @@ SnoreToast::~SnoreToast()
bool SnoreToast::initialize(SnoreCore *snore)
{
if(QSysInfo::windowsVersion() != QSysInfo::WV_WINDOWS8)
if(QSysInfo::windowsVersion() < QSysInfo::WV_WINDOWS8)
{
snoreDebug( SNORE_DEBUG ) << "SnoreToast does not work on windows" << QSysInfo::windowsVersion();
return false;