Merge pull request #1459 from tribut/fix-ldap-display-name

Use user-provided username in `displayName()` - Fix #836
This commit is contained in:
Camila Ayres 2019-10-01 15:06:15 +02:00 committed by GitHub
commit 4dddf88569
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,7 +119,7 @@ void Account::setAvatar(const QImage &img)
QString Account::displayName() const
{
QString dn = QString("%1@%2").arg(davUser(), _url.host());
QString dn = QString("%1@%2").arg(credentials()->user(), _url.host());
int port = url().port();
if (port > 0 && port != 80 && port != 443) {
dn.append(QLatin1Char(':'));