diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-01-09 04:49:53 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-01-09 04:49:53 +0100 |
commit | 6d8dabf623b0b028c0b3ffe2489df4c2e9fc053b (patch) | |
tree | 9db7b9d295e035970b7da9015c8d40339c1e5103 /src | |
parent | Add some more error logging (diff) | |
download | nheko-6d8dabf623b0b028c0b3ffe2489df4c2e9fc053b.tar.xz |
Possibly fix paste from Safari
Diffstat (limited to 'src')
-rw-r--r-- | src/timeline/InputBar.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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()) { |