mirror of https://github.com/procxx/kepka.git
Fix pasting of an image with attached URL data.
Regression was introduced in db5d599052
.
Fixes #7794.
This commit is contained in:
parent
1af394a485
commit
c0246a9373
|
@ -4467,6 +4467,8 @@ bool HistoryWidget::confirmSendingFiles(
|
|||
bool HistoryWidget::canSendFiles(not_null<const QMimeData*> data) const {
|
||||
if (!canWriteMessage()) {
|
||||
return false;
|
||||
} else if (data->hasImage()) {
|
||||
return true;
|
||||
} else if (const auto urls = data->urls(); !urls.empty()) {
|
||||
if (ranges::find_if(
|
||||
urls,
|
||||
|
@ -4474,8 +4476,6 @@ bool HistoryWidget::canSendFiles(not_null<const QMimeData*> data) const {
|
|||
) == urls.end()) {
|
||||
return true;
|
||||
}
|
||||
} else if (data->hasImage()) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue