2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

Use KUrlMimeData for clipboard xdg-desktop-portal integration

This commit is contained in:
Ilya Fedin
2022-08-27 01:45:38 +04:00
committed by John Preston
parent 5f53dfda0e
commit e20840b4d4
13 changed files with 125 additions and 16 deletions

View File

@@ -1000,6 +1000,7 @@ void MainWindow::launchDrag(
// Qt destroys this QDrag automatically after the drag is finished
// We must not delete this at the end of this function, as this breaks DnD on Linux
auto drag = new QDrag(this);
KUrlMimeData::exportUrlsToPortal(data.get());
drag->setMimeData(data.release());
drag->exec(Qt::CopyAction);