Usercard command fix (#1918)

* Add myself to contributors list
This commit is contained in:
Daniel 2020-08-30 05:57:46 -04:00 committed by GitHub
parent 07fc0c3ad7
commit 0814fca7d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View file

@ -4,6 +4,7 @@
- Minor: Disable checking for updates on unsupported platforms (#1874)
- Bugfix: Fix bug preventing users from setting the highlight color of the second entry in the "User" highlights tab (#1898)
- Bugfix: /usercard command will now respect the "Automatically close user popup" setting (#1918)
## 2.2.0

View file

@ -31,6 +31,7 @@ YungLPR | https://github.com/leon-richardt | | Contributor
Mm2PL | https://github.com/mm2pl | | Contributor
gempir | https://github.com/gempir | | Contributor
mfmarlow | https://github.com/mfmarlow | | Contributor
dnsge | https://github.com/dnsge | | Contributor
# If you are a contributor add yourself above this line
Defman21 | https://github.com/Defman21 | | Documentation

View file

@ -451,7 +451,9 @@ QString CommandController::execCommand(const QString &textNoEmoji,
makeSystemMessage("Usage /usercard [user]"));
return "";
}
auto *userPopup = new UserInfoPopup(false);
auto *userPopup =
new UserInfoPopup(getSettings()->autoCloseUserPopup);
userPopup->setData(words[1], channel);
userPopup->move(QCursor::pos());
userPopup->show();