From f18035bf4473850a0b328b1e589cf4bceca4d3e3 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Fri, 24 Feb 2017 09:26:24 +0100 Subject: [PATCH] fix(src/app/App): do not use `iconified` icon on MacOS --- linphone-desktop/src/app/App.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/linphone-desktop/src/app/App.cpp b/linphone-desktop/src/app/App.cpp index 3d556aeb0..20814e7c3 100644 --- a/linphone-desktop/src/app/App.cpp +++ b/linphone-desktop/src/app/App.cpp @@ -153,10 +153,10 @@ void App::initContentApp () { else setTrayIcon(); - #endif // ifndef __APPLE__ + if (!m_parser.isSet("iconified")) + getMainWindow()->showNormal(); - if (!m_parser.isSet("iconified")) - getMainWindow()->showNormal(); + #endif // ifndef __APPLE__ if (m_parser.isSet("selftest")) QTimer::singleShot(300, this, &App::quit); @@ -172,7 +172,7 @@ void App::parseArgs () { { "config", tr("commandLineOptionConfig"), "file" }, #ifndef __APPLE__ { "iconified", tr("commandLineOptionIconified") }, - #endif // __APPLE__ + #endif // ifndef __APPLE__ { "selftest", tr("commandLineOptionSelftest") }, { { "V", "verbose" }, tr("commandLineOptionVerbose") } });