Ignored drag action on reply links in unwrapped media.
This commit is contained in:
parent
9bf5f992a3
commit
fd6e135700
|
@ -519,6 +519,12 @@ bool UnwrappedMedia::hasTextForCopy() const {
|
||||||
return _content->hasTextForCopy();
|
return _content->hasTextForCopy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool UnwrappedMedia::dragItemByHandler(
|
||||||
|
const ClickHandlerPtr &p) const {
|
||||||
|
const auto reply = _parent->displayedReply();
|
||||||
|
return !(reply && (reply->replyToLink() == p));
|
||||||
|
}
|
||||||
|
|
||||||
QRect UnwrappedMedia::contentRectForReactions() const {
|
QRect UnwrappedMedia::contentRectForReactions() const {
|
||||||
const auto inWebPage = (_parent->media() != this);
|
const auto inWebPage = (_parent->media() != this);
|
||||||
if (inWebPage) {
|
if (inWebPage) {
|
||||||
|
|
|
@ -73,9 +73,7 @@ public:
|
||||||
bool toggleSelectionByHandlerClick(const ClickHandlerPtr &p) const override {
|
bool toggleSelectionByHandlerClick(const ClickHandlerPtr &p) const override {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
bool dragItemByHandler(const ClickHandlerPtr &p) const override {
|
bool dragItemByHandler(const ClickHandlerPtr &p) const override;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
DocumentData *getDocument() const override {
|
DocumentData *getDocument() const override {
|
||||||
return _content->document();
|
return _content->document();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user