From 136a7c1a941ccda0f008aea24915f7b357482f0f Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Fri, 17 Feb 2017 15:01:00 +0100 Subject: [PATCH] feat(src/app/App): disable tray icon system on Mac OS --- linphone-desktop/src/app/App.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/linphone-desktop/src/app/App.cpp b/linphone-desktop/src/app/App.cpp index ef7b5c282..1b536c8bd 100644 --- a/linphone-desktop/src/app/App.cpp +++ b/linphone-desktop/src/app/App.cpp @@ -126,11 +126,15 @@ void App::initContentApp () { if (m_engine.rootObjects().isEmpty()) qFatal("Unable to open main window."); - // Enable TrayIconSystem. - if (!QSystemTrayIcon::isSystemTrayAvailable()) - qWarning("System tray not found on this system."); - else - setTrayIcon(); + #ifndef __APPLE__ + + // Enable TrayIconSystem. + if (!QSystemTrayIcon::isSystemTrayAvailable()) + qWarning("System tray not found on this system."); + else + setTrayIcon(); + + #endif // ifndef __APPLE__ } // -----------------------------------------------------------------------------