2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

link clicks and popup menu items activated async, some crashes fixed

This commit is contained in:
John Preston
2016-02-16 14:21:39 +03:00
parent ebd77ba71d
commit a5b466ec05
11 changed files with 41 additions and 18 deletions

View File

@@ -1410,7 +1410,7 @@ namespace App {
QString uname(username.trimmed());
for (PeersData::const_iterator i = peersData.cbegin(), e = peersData.cend(); i != e; ++i) {
if (!i.value()->userName().compare(uname, Qt::CaseInsensitive)) {
return i.value()->asUser();
return i.value();
}
}
return 0;