mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Lint
This commit is contained in:
parent
3f05df19a1
commit
4810c2a2bc
1 changed files with 2 additions and 1 deletions
|
@ -2034,7 +2034,8 @@ TimelineModel::copyMedia(const QString &eventId) const
|
||||||
clipContents->setImageData(img);
|
clipContents->setImageData(img);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Qt uses COM for clipboard management on windows and our HTTP threads do not initialize it, so run in the event loop
|
// Qt uses COM for clipboard management on windows and our HTTP threads do not
|
||||||
|
// initialize it, so run in the event loop
|
||||||
QTimer::singleShot(0, ChatPage::instance(), [clipContents] {
|
QTimer::singleShot(0, ChatPage::instance(), [clipContents] {
|
||||||
QGuiApplication::clipboard()->setMimeData(clipContents);
|
QGuiApplication::clipboard()->setMimeData(clipContents);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue