File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Telegram/SourceFiles/info/peer_gifts Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1907,7 +1907,7 @@ void InnerWidget::flushCollectionReorder() {
19071907}
19081908
19091909void 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
You can’t perform that action at this time.
0 commit comments