From 00c11b248ad1e3cf415f01a3ec824cb003e03b0a Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 24 Oct 2024 22:09:15 +0800 Subject: [PATCH] Only display server name in multiple override servers dropdown Signed-off-by: Claudio Cambra --- src/gui/wizard/owncloudsetuppage.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/wizard/owncloudsetuppage.cpp b/src/gui/wizard/owncloudsetuppage.cpp index 708949f759a6..28bd2c3d849b 100644 --- a/src/gui/wizard/owncloudsetuppage.cpp +++ b/src/gui/wizard/owncloudsetuppage.cpp @@ -63,8 +63,7 @@ OwncloudSetupPage::OwncloudSetupPage(QWidget *parent) const auto serverObject = serverJson.toObject(); const auto serverName = serverObject.value("name").toString(); const auto serverUrl = serverObject.value("url").toString(); - const auto serverDisplayString = QString("%1 (%2)").arg(serverName, serverUrl); - _ui.comboBox->addItem(serverDisplayString, serverUrl); + _ui.comboBox->addItem(serverName, serverUrl); } } else if (theme->forceOverrideServerUrl()) { _ui.comboBox->hide();