1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-30 00:55:33 +01:00

Use QClipboard::setText instead of QClipboard::setMimeData

Fixes #581

Fixes clipboard copying on Windows too
This commit is contained in:
Jonas Kvinge 2020-11-08 00:51:24 +01:00
parent 748bc27b25
commit 9bbed6e95c

View File

@ -2540,9 +2540,9 @@ void MainWindow::PlaylistCopyUrl() {
}
if (urls.count() > 0) {
QMimeData *mime_data = new QMimeData;
mime_data->setUrls(urls);
QApplication::clipboard()->setMimeData(mime_data);
QMimeData mime_data;
mime_data.setUrls(urls);
QApplication::clipboard()->setText(mime_data.text());
}
}