From 008f71cdbdc4e0c80fa05937b467ddb7fc0bcd9f Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 9 Jan 2023 04:52:49 +0100 Subject: [PATCH] Document Safari workaround --- src/timeline/InputBar.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;