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:
parent
748bc27b25
commit
9bbed6e95c
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user