From 4f9e6a7be24f48a92241c6c92c77f845909c24a3 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Sun, 10 May 2020 12:43:23 +0200 Subject: [PATCH] Move a SystemTray test after tryinjg to create one. --- linphone-app/src/app/App.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linphone-app/src/app/App.cpp b/linphone-app/src/app/App.cpp index 823328631..6fcadd572 100644 --- a/linphone-app/src/app/App.cpp +++ b/linphone-app/src/app/App.cpp @@ -563,8 +563,6 @@ void App::registerSharedToolTypes () { // ----------------------------------------------------------------------------- void App::setTrayIcon () { - if(!QSystemTrayIcon::isSystemTrayAvailable()) - qInfo() << "System tray is not available"; QQuickWindow *root = getMainWindow(); QSystemTrayIcon *systemTrayIcon = new QSystemTrayIcon(mEngine); @@ -619,6 +617,8 @@ void App::setTrayIcon () { systemTrayIcon->setToolTip(APPLICATION_NAME); systemTrayIcon->show(); mSystemTrayIcon = systemTrayIcon; + if(!QSystemTrayIcon::isSystemTrayAvailable()) + qInfo() << "System tray is not available"; } // -----------------------------------------------------------------------------