From 72fe0d8818d617a4edc6ad30fd0da506d07fff89 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 19 Sep 2024 18:13:18 +0800 Subject: [PATCH] Display server URL in multi-server enforced combo box Signed-off-by: Claudio Cambra --- src/gui/wizard/owncloudsetuppage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/wizard/owncloudsetuppage.cpp b/src/gui/wizard/owncloudsetuppage.cpp index fdbb8248e..1a0cc9f0d 100644 --- a/src/gui/wizard/owncloudsetuppage.cpp +++ b/src/gui/wizard/owncloudsetuppage.cpp @@ -63,7 +63,8 @@ OwncloudSetupPage::OwncloudSetupPage(QWidget *parent) const auto serverObject = serverJson.toObject(); const auto serverName = serverObject.value("name").toString(); const auto serverUrl = serverObject.value("url").toString(); - _ui.comboBox->addItem(serverName, serverUrl); + const auto serverDisplayString = QString("%1 (%2)").arg(serverName, serverUrl); + _ui.comboBox->addItem(serverDisplayString, serverUrl); } } else if (theme->forceOverrideServerUrl()) { _ui.comboBox->hide();