mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
langs updated, right click in profile fixed
This commit is contained in:
@@ -600,16 +600,18 @@ void ProfileInner::updateSelected() {
|
||||
void ProfileInner::mousePressEvent(QMouseEvent *e) {
|
||||
_lastPos = e->globalPos();
|
||||
updateSelected();
|
||||
if (_kickOver) {
|
||||
_kickDown = _kickOver;
|
||||
update();
|
||||
} else if (_selectedRow >= 0 && _selectedRow < _participants.size()) {
|
||||
App::main()->showPeerProfile(_participants[_selectedRow]);
|
||||
} else if (QRect(_left, st::profilePadding.top(), st::setPhotoSize, st::setPhotoSize).contains(e->pos())) {
|
||||
if (_photoLink) {
|
||||
_photoLink->onClick(e->button());
|
||||
} else if (_peerChat && !_peerChat->forbidden) {
|
||||
onUpdatePhoto();
|
||||
if (e->button() == Qt::LeftButton) {
|
||||
if (_kickOver) {
|
||||
_kickDown = _kickOver;
|
||||
update();
|
||||
} else if (_selectedRow >= 0 && _selectedRow < _participants.size()) {
|
||||
App::main()->showPeerProfile(_participants[_selectedRow]);
|
||||
} else if (QRect(_left, st::profilePadding.top(), st::setPhotoSize, st::setPhotoSize).contains(e->pos())) {
|
||||
if (_photoLink) {
|
||||
_photoLink->onClick(e->button());
|
||||
} else if (_peerChat && !_peerChat->forbidden) {
|
||||
onUpdatePhoto();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user