From ccd6004e341aacfa5cf529a29d1b51dfeebb02a4 Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Wed, 17 Dec 2025 16:08:42 +0100 Subject: [PATCH] if account in remote provisioning, switch to main page even if it is not connected yet (we can add an account without a password and ask for it after) --- Linphone/core/App.cpp | 6 +++++- Linphone/data/languages/de.ts | 18 +++++++++--------- Linphone/data/languages/en.ts | 18 +++++++++--------- Linphone/data/languages/fr.ts | 18 +++++++++--------- 4 files changed, 32 insertions(+), 28 deletions(-) diff --git a/Linphone/core/App.cpp b/Linphone/core/App.cpp index d04ee888a..802c41d41 100644 --- a/Linphone/core/App.cpp +++ b/Linphone/core/App.cpp @@ -408,7 +408,7 @@ void App::setSelf(QSharedPointer(me)) { // if (accountConnected) if (mPossiblyLookForAddedAccount) { QMetaObject::invokeMethod(mMainWindow, "openMainPage", Qt::DirectConnection, - Q_ARG(QVariant, accountConnected)); + Q_ARG(QVariant, true)); } mPossiblyLookForAddedAccount = false; }); @@ -711,6 +711,10 @@ void App::initCore() { }); } else { mPossiblyLookForAddedAccount = true; + if (mAccountList && mAccountList->getCount() > 0) { + QMetaObject::invokeMethod(mMainWindow, "openMainPage", Qt::DirectConnection, + Q_ARG(QVariant, true)); + } } } checkForUpdate(); diff --git a/Linphone/data/languages/de.ts b/Linphone/data/languages/de.ts index 2380e4dfd..c51afde85 100644 --- a/Linphone/data/languages/de.ts +++ b/Linphone/data/languages/de.ts @@ -735,51 +735,51 @@ nicht erreichbar - + application_description "A free and open source SIP video-phone." Ein kostenloses Open-Source SIP Video-Telefon. - + command_line_arg_order "Send an order to the application towards a command line" Kommandozeilen-Befehl an die Anwendung schicken - + command_line_option_show_help Zeige Hilfe - + command_line_option_show_app_version App-Version anzeigen - + command_line_option_config_to_fetch "Specify the linphone configuration file to be fetched. It will be merged with the current configuration." Abzurufende Linphone-Konfigurationsdatei angeben. Sie wird mit der aktuellen Konfiguration zusammengeführt. - + command_line_option_config_to_fetch_arg "URL, path or file" URL, Pfad oder Datei - + command_line_option_minimized Minimieren - + command_line_option_log_to_stdout Debug-Informationen auf der Standardausgabe ausgeben - + command_line_option_print_app_logs_only "Print only logs from the application" Nur Anwendungs-Logs ausgeben diff --git a/Linphone/data/languages/en.ts b/Linphone/data/languages/en.ts index 466b021a0..85e1edfb3 100644 --- a/Linphone/data/languages/en.ts +++ b/Linphone/data/languages/en.ts @@ -716,51 +716,51 @@ not reachable - + application_description "A free and open source SIP video-phone." A free and open source SIP video-phone. - + command_line_arg_order "Send an order to the application towards a command line" Send an order to the application towards a command line - + command_line_option_show_help Show this help - + command_line_option_show_app_version Show app version - + command_line_option_config_to_fetch "Specify the linphone configuration file to be fetched. It will be merged with the current configuration." Specify the linphone configuration file to be fetched. It will be merged with the current configuration. - + command_line_option_config_to_fetch_arg "URL, path or file" URL, path or file - + command_line_option_minimized Minimize - + command_line_option_log_to_stdout Log to stdout some debug information while running - + command_line_option_print_app_logs_only "Print only logs from the application" Print only logs from the application diff --git a/Linphone/data/languages/fr.ts b/Linphone/data/languages/fr.ts index 6f9cea0c1..fec1f5744 100644 --- a/Linphone/data/languages/fr.ts +++ b/Linphone/data/languages/fr.ts @@ -711,51 +711,51 @@ indisponible - + application_description "A free and open source SIP video-phone." A free and open source SIP video-phone. - + command_line_arg_order "Send an order to the application towards a command line" Send an order to the application towards a command line - + command_line_option_show_help Show this help - + command_line_option_show_app_version Afficher la version de l'application - + command_line_option_config_to_fetch "Specify the linphone configuration file to be fetched. It will be merged with the current configuration." Specify the linphone configuration file to be fetched. It will be merged with the current configuration. - + command_line_option_config_to_fetch_arg "URL, path or file" URL, path or file - + command_line_option_minimized Minimiser - + command_line_option_log_to_stdout Log to stdout some debug information while running - + command_line_option_print_app_logs_only "Print only logs from the application" Print only logs from the application