mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
parent
78ed4866ce
commit
1de4d96ab1
1 changed files with 7 additions and 1 deletions
|
@ -86,7 +86,13 @@ AccountPtr Account::sharedFromThis()
|
|||
QString Account::displayName() const
|
||||
{
|
||||
auto user = _credentials->user();
|
||||
return tr("%1@%2").arg(user, _url.host());
|
||||
QString dn = QString("%1@%2").arg(user, _url.host());
|
||||
int port = url().port();
|
||||
if (port > 0 && port != 80 && port != 443) {
|
||||
dn.append(QLatin1Char(':'));
|
||||
dn.append(QString::number(port));
|
||||
}
|
||||
return dn;
|
||||
}
|
||||
|
||||
QString Account::id() const
|
||||
|
|
Loading…
Reference in a new issue