From 6d8dabf623b0b028c0b3ffe2489df4c2e9fc053b Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 9 Jan 2023 04:49:53 +0100 Subject: [PATCH] Possibly fix paste from Safari --- src/timeline/InputBar.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp index 1cec5426..f36a2515 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp @@ -175,7 +175,13 @@ InputBar::insertMimeData(const QMimeData *md) startUploadFromMimeData(*md, audio.first()); } else if (!video.empty()) { startUploadFromMimeData(*md, video.first()); - } else if (md->hasUrls()) { + } else if (md->hasUrls() && [&md] { + for (const auto &u : md->urls()) { + if (u.isLocalFile()) + return true; + } + return false; + }()) { // Generic file path for any platform. for (auto &&u : md->urls()) { if (u.isLocalFile()) {