summary refs log tree commit diff
path: root/src/timeline/InputBar.cpp
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 /src/timeline/InputBar.cpp
parentPossibly fix paste from Safari (diff)
downloadnheko-008f71cdbdc4e0c80fa05937b467ddb7fc0bcd9f.tar.xz
Document Safari workaround
Diffstat (limited to 'src/timeline/InputBar.cpp')
-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;