Skip to content

Commit 113115f

Browse files
committed
Fix selecting gifts for a collection.
1 parent e847992 commit 113115f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Telegram/SourceFiles/info/peer_gifts/info_peer_gifts_widget.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1907,7 +1907,7 @@ void InnerWidget::flushCollectionReorder() {
19071907
}
19081908

19091909
void InnerWidget::mousePressEvent(QMouseEvent *e) {
1910-
if (e->button() != Qt::LeftButton || _addingToCollectionId) {
1910+
if (e->button() != Qt::LeftButton) {
19111911
return;
19121912
}
19131913
const auto index = giftFromGlobalPos(e->globalPos());
@@ -1916,7 +1916,8 @@ void InnerWidget::mousePressEvent(QMouseEvent *e) {
19161916
}
19171917
_pressedIndex = index;
19181918
const auto collectionId = _descriptor.current().collectionId;
1919-
const auto canDrag = _peer->canManageGifts()
1919+
const auto canDrag = !_addingToCollectionId
1920+
&& _peer->canManageGifts()
19201921
&& _list->size() > 1
19211922
&& (collectionId
19221923
|| (!collectionId

0 commit comments

Comments
 (0)