Fix build with GCC.

This commit is contained in:
John Preston 2022-06-15 23:25:51 +04:00
parent 0434e520fd
commit 145d112982
3 changed files with 4 additions and 2 deletions

View file

@ -1118,7 +1118,6 @@ void ReactionPreview::paintEffect(QPainter &p) {
}
} else if (event->type() == QEvent::MouseMove) {
const auto point = static_cast<QMouseEvent*>(event.get())->pos();
const auto index = lookup(point);
select(lookup(point));
} else if (event->type() == QEvent::Leave) {
select(-1);

View file

@ -106,6 +106,9 @@ void UserData::setPhone(const QString &newPhone) {
void UserData::setBotInfoVersion(int version) {
if (version < 0) {
// We don't support bots becoming non-bots.
if (botInfo) {
botInfo->version = -1;
}
} else if (!botInfo) {
botInfo = std::make_unique<BotInfo>();
botInfo->version = version;

View file

@ -299,7 +299,7 @@ infoProfileNameLabel: FlatLabel(infoProfileStatusLabel) {
linkFontOver: font(16px semibold underline);
}
}
infoVerifiedCheckPosition: point(2px, 2px);
infoVerifiedCheckPosition: point(4px, 2px);
infoVerifiedCheck: icon {
{ "profile_verified_star", profileVerifiedCheckBg },
{ "profile_verified_check", profileVerifiedCheckFg }