mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 07:05:13 +00:00
Fix build with GCC.
This commit is contained in:
@@ -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);
|
||||
|
@@ -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;
|
||||
|
@@ -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 }
|
||||
|
Reference in New Issue
Block a user