2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Added ability to paste data in section of scheduled messages.

Fixed #6702.
Fixed #6539.
This commit is contained in:
23rd
2020-05-15 15:47:10 +03:00
committed by John Preston
parent 97446ae783
commit ccbc63cd6e
6 changed files with 80 additions and 9 deletions

View File

@@ -551,10 +551,7 @@ void EditCaptionBox::prepare() {
} else if (data->hasImage()) {
return true;
} else if (const auto urls = data->urls(); !urls.empty()) {
if (ranges::find_if(
urls,
[](const QUrl &url) { return !url.isLocalFile(); }
) == urls.end()) {
if (ranges::all_of(urls, &QUrl::isLocalFile)) {
return true;
}
}