Possibly fix paste from Safari

pull/1284/head
Nicolas Werner 2 years ago
parent b84bc7895e
commit 6d8dabf623
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 8
      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()) {

Loading…
Cancel
Save