diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2018-08-18 09:41:50 +0300 |
---|---|---|
committer | Markus Goetz <markus@woboq.com> | 2018-08-19 22:26:16 +0300 |
commit | 6b8af424199ac04b5d9b4ee3fd86dbc3db14dacf (patch) | |
tree | 985b30c4132f324f4c9fdf73e2d0c53460e9c3f1 /src/gui/activitywidget.cpp | |
parent | c85cd8e2252061cba066dd59432efbf29270c98c (diff) |
Activity: Handle the fact that the username can contain a '@'
Issue #6728
Diffstat (limited to 'src/gui/activitywidget.cpp')
-rw-r--r-- | src/gui/activitywidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/activitywidget.cpp b/src/gui/activitywidget.cpp index 2d115eaf4..993313e96 100644 --- a/src/gui/activitywidget.cpp +++ b/src/gui/activitywidget.cpp @@ -296,7 +296,7 @@ void ActivityWidget::slotBuildNotificationDisplay(const ActivityList &list) // store the name of the account that sends the notification to be // able to add it to the tray notification // remove the user name from the account as that is not accurate here. - int indx = host.indexOf(QChar('@')); + int indx = host.lastIndexOf(QChar('@')); if (indx > -1) { host.remove(0, 1 + indx); } |