diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-01-09 04:52:49 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-01-09 04:53:14 +0100 |
commit | 008f71cdbdc4e0c80fa05937b467ddb7fc0bcd9f (patch) | |
tree | 98a96d1277af732f6fbdcd088befe09ae44a1947 /src/timeline/InputBar.cpp | |
parent | Possibly fix paste from Safari (diff) | |
download | nheko-008f71cdbdc4e0c80fa05937b467ddb7fc0bcd9f.tar.xz |
Document Safari workaround
Diffstat (limited to 'src/timeline/InputBar.cpp')
-rw-r--r-- | src/timeline/InputBar.cpp | 5 |
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; |