mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Ignored drag action on reply links in unwrapped media.
This commit is contained in:
@@ -519,6 +519,12 @@ bool UnwrappedMedia::hasTextForCopy() const {
|
||||
return _content->hasTextForCopy();
|
||||
}
|
||||
|
||||
bool UnwrappedMedia::dragItemByHandler(
|
||||
const ClickHandlerPtr &p) const {
|
||||
const auto reply = _parent->displayedReply();
|
||||
return !(reply && (reply->replyToLink() == p));
|
||||
}
|
||||
|
||||
QRect UnwrappedMedia::contentRectForReactions() const {
|
||||
const auto inWebPage = (_parent->media() != this);
|
||||
if (inWebPage) {
|
||||
|
@@ -73,9 +73,7 @@ public:
|
||||
bool toggleSelectionByHandlerClick(const ClickHandlerPtr &p) const override {
|
||||
return true;
|
||||
}
|
||||
bool dragItemByHandler(const ClickHandlerPtr &p) const override {
|
||||
return true;
|
||||
}
|
||||
bool dragItemByHandler(const ClickHandlerPtr &p) const override;
|
||||
|
||||
DocumentData *getDocument() const override {
|
||||
return _content->document();
|
||||
|
Reference in New Issue
Block a user