From 3a9ea819299a575d34e97381ff5649a71be45e8f Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 17 Jan 2025 07:12:25 +0100 Subject: [PATCH] Queue: Fix sizeof, should be the pointer not the class --- src/queue/queue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queue/queue.cpp b/src/queue/queue.cpp index 1eb9a3532..102b02ad1 100644 --- a/src/queue/queue.cpp +++ b/src/queue/queue.cpp @@ -385,7 +385,7 @@ bool Queue::dropMimeData(const QMimeData *data, Qt::DropAction action, const int Playlist *playlist = nullptr; QList source_rows; QDataStream stream(data->data(QLatin1String(Playlist::kRowsMimetype))); - stream.readRawData(reinterpret_cast(&playlist), sizeof(Playlist)); + stream.readRawData(reinterpret_cast(&playlist), sizeof(&playlist)); stream >> source_rows; QModelIndexList source_indexes;