mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 15:17:07 +02:00
Fix build with GCC.
This commit is contained in:
parent
0434e520fd
commit
145d112982
3 changed files with 4 additions and 2 deletions
Telegram/SourceFiles
|
@ -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 }
|
||||
|
|
Loading…
Add table
Reference in a new issue