mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Possibly fix paste from Safari
This commit is contained in:
parent
b84bc7895e
commit
6d8dabf623
1 changed files with 7 additions and 1 deletions
|
@ -175,7 +175,13 @@ InputBar::insertMimeData(const QMimeData *md)
|
||||||
startUploadFromMimeData(*md, audio.first());
|
startUploadFromMimeData(*md, audio.first());
|
||||||
} else if (!video.empty()) {
|
} else if (!video.empty()) {
|
||||||
startUploadFromMimeData(*md, video.first());
|
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.
|
// Generic file path for any platform.
|
||||||
for (auto &&u : md->urls()) {
|
for (auto &&u : md->urls()) {
|
||||||
if (u.isLocalFile()) {
|
if (u.isLocalFile()) {
|
||||||
|
|
Loading…
Reference in a new issue