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) {
|
} else if (event->type() == QEvent::MouseMove) {
|
||||||
const auto point = static_cast<QMouseEvent*>(event.get())->pos();
|
const auto point = static_cast<QMouseEvent*>(event.get())->pos();
|
||||||
const auto index = lookup(point);
|
|
||||||
select(lookup(point));
|
select(lookup(point));
|
||||||
} else if (event->type() == QEvent::Leave) {
|
} else if (event->type() == QEvent::Leave) {
|
||||||
select(-1);
|
select(-1);
|
||||||
|
@@ -106,6 +106,9 @@ void UserData::setPhone(const QString &newPhone) {
|
|||||||
void UserData::setBotInfoVersion(int version) {
|
void UserData::setBotInfoVersion(int version) {
|
||||||
if (version < 0) {
|
if (version < 0) {
|
||||||
// We don't support bots becoming non-bots.
|
// We don't support bots becoming non-bots.
|
||||||
|
if (botInfo) {
|
||||||
|
botInfo->version = -1;
|
||||||
|
}
|
||||||
} else if (!botInfo) {
|
} else if (!botInfo) {
|
||||||
botInfo = std::make_unique<BotInfo>();
|
botInfo = std::make_unique<BotInfo>();
|
||||||
botInfo->version = version;
|
botInfo->version = version;
|
||||||
|
@@ -299,7 +299,7 @@ infoProfileNameLabel: FlatLabel(infoProfileStatusLabel) {
|
|||||||
linkFontOver: font(16px semibold underline);
|
linkFontOver: font(16px semibold underline);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
infoVerifiedCheckPosition: point(2px, 2px);
|
infoVerifiedCheckPosition: point(4px, 2px);
|
||||||
infoVerifiedCheck: icon {
|
infoVerifiedCheck: icon {
|
||||||
{ "profile_verified_star", profileVerifiedCheckBg },
|
{ "profile_verified_star", profileVerifiedCheckBg },
|
||||||
{ "profile_verified_check", profileVerifiedCheckFg }
|
{ "profile_verified_check", profileVerifiedCheckFg }
|
||||||
|
Reference in New Issue
Block a user