fixed detection of win8 notification on win8.1
This commit is contained in:
parent
a3a25e4af9
commit
9928a6040a
|
@ -181,7 +181,7 @@ bool SnoreCore::setPrimaryNotificationBackend()
|
||||||
{
|
{
|
||||||
Q_D(SnoreCore);
|
Q_D(SnoreCore);
|
||||||
#ifdef Q_OS_WIN
|
#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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ SnoreToast::~SnoreToast()
|
||||||
|
|
||||||
bool SnoreToast::initialize(SnoreCore *snore)
|
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();
|
snoreDebug( SNORE_DEBUG ) << "SnoreToast does not work on windows" << QSysInfo::windowsVersion();
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue