From 39ca751897348872c74ba2e5858dfd57fecf445a Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Tue, 15 May 2018 14:28:32 +0200 Subject: [PATCH] feat(App): add an option to the linphonerc to disable calls windows --- src/app/App.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/App.cpp b/src/app/App.cpp index 3512ff336..8f7a366a1 100644 --- a/src/app/App.cpp +++ b/src/app/App.cpp @@ -282,6 +282,11 @@ QString App::getCommandArgument () { // ----------------------------------------------------------------------------- QQuickWindow *App::getCallsWindow () { + if (CoreManager::getInstance()->getCore()->getConfig()->getInt( + SettingsModel::UI_SECTION, "disable_calls_window", 0 + )) + return nullptr; + if (!mCallsWindow) mCallsWindow = ::createSubWindow(mEngine, cQmlViewCallsWindow);