2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

some warnings fixed, TDESKTOP_DISABLE_NETWORK_PROXY macro added

This commit is contained in:
John Preston
2016-03-20 11:16:35 +03:00
parent 2cbda4e1e5
commit 0b2bcbc3e9
25 changed files with 143 additions and 105 deletions

View File

@@ -2646,7 +2646,6 @@ void HistoryBlock::removeItem(HistoryItem *item) {
}
// myIndex can be invalid now, because of destroying previous blocks
dh = item->height();
items.remove(index);
if ((!item->out() || item->isPost()) && item->unread() && history->unreadCount) {
history->setUnreadCount(history->unreadCount - 1);
@@ -4725,7 +4724,7 @@ void HistorySticker::draw(Painter &p, const HistoryItem *parent, const QRect &r,
_data->checkSticker();
bool loaded = _data->loaded();
bool out = parent->out(), isPost = parent->isPost(), outbg = out && !isPost, hovered, pressed;
bool out = parent->out(), isPost = parent->isPost(), outbg = out && !isPost;
int32 usew = _maxw, usex = 0;
const HistoryReply *reply = toHistoryReply(parent);