Document Safari workaround
This commit is contained in:
parent
6d8dabf623
commit
008f71cdbd
1 changed files with 4 additions and 1 deletions
|
|
@ -175,7 +175,10 @@ InputBar::insertMimeData(const QMimeData *md)
|
|||
startUploadFromMimeData(*md, audio.first());
|
||||
} else if (!video.empty()) {
|
||||
startUploadFromMimeData(*md, video.first());
|
||||
} else if (md->hasUrls() && [&md] {
|
||||
} else if (md->hasUrls() &&
|
||||
// NOTE(Nico): Safari, when copying the url, sends a url list. Since we only paste
|
||||
// local files, skip remote ones.
|
||||
[&md] {
|
||||
for (const auto &u : md->urls()) {
|
||||
if (u.isLocalFile())
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue