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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user