summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-01-09 04:52:49 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2023-01-09 04:53:14 +0100
commit008f71cdbdc4e0c80fa05937b467ddb7fc0bcd9f (patch)
tree98a96d1277af732f6fbdcd088befe09ae44a1947
parent6d8dabf623b0b028c0b3ffe2489df4c2e9fc053b (diff)
Document Safari workaround
-rw-r--r--src/timeline/InputBar.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp
index f36a2515..333f49b2 100644
--- a/src/timeline/InputBar.cpp
+++ b/src/timeline/InputBar.cpp
@@ -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;