From 004bbc48917990d53d8d82f40a83336eedd00e3e 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 708949f759a6d..28bd2c3d849be 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();