From 4a927cfddab3fe3392ff84f88709dc4dd4d2b2be Mon Sep 17 00:00:00 2001 From: nicolas Date: Fri, 8 Sep 2017 11:42:04 +0200 Subject: [PATCH] fix(Cli): add an incomplet call view when & conference is initialized --- src/app/cli/Cli.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/cli/Cli.cpp b/src/app/cli/Cli.cpp index a788847cf..453aad93d 100644 --- a/src/app/cli/Cli.cpp +++ b/src/app/cli/Cli.cpp @@ -113,10 +113,13 @@ static void cliInitiateConference (QHash &args) { shared_ptr conference = core->getConference(); const QString id = args["conference-id"]; + + App *app = App::getInstance(); if (conference) { if (conference->getId() == ::Utils::appStringToCoreString(id)) { qInfo() << QStringLiteral("Conference `%1` already exists.").arg(id); // TODO: Set the view to the "waiting call view". + app->smartShowWindow(app->getCallsWindow()); return; } @@ -133,9 +136,8 @@ static void cliInitiateConference (QHash &args) { qWarning() << QStringLiteral("Unable to join created conference: `%1`.").arg(id); return; } - App *app = App::getInstance(); - app->smartShowWindow(app->getCallsWindow()); // TODO: Set the view to the "waiting call view". + app->smartShowWindow(app->getCallsWindow()); } // =============================================================================