summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/osx
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth/osx')
-rw-r--r--src/bluetooth/osx/osxbtdevicepair.mm8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bluetooth/osx/osxbtdevicepair.mm b/src/bluetooth/osx/osxbtdevicepair.mm
index fdb95522..3dfc4d33 100644
--- a/src/bluetooth/osx/osxbtdevicepair.mm
+++ b/src/bluetooth/osx/osxbtdevicepair.mm
@@ -43,6 +43,7 @@
#include "osxbtutility_p.h"
#include <QtCore/qloggingcategory.h>
+#include <QtCore/qsysinfo.h>
#include <QtCore/qdebug.h>
QT_BEGIN_NAMESPACE
@@ -92,10 +93,13 @@ using namespace QT_NAMESPACE;
- (void)dealloc
{
-#if QT_MAC_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_9, __IPHONE_NA)
+#if QT_OSX_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_9)
// Stop also sets a delegate to nil (Apple's docs).
// 10.9 only.
- [m_pairing stop];
+ if (QSysInfo::MacintoshVersion >= QSysInfo::MV_10_9)
+ [m_pairing stop];
+ else
+ [m_pairing setDelegate:nil];
#else
[m_pairing setDelegate:nil];
#endif