1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-30 09:05:04 +01:00

Queue: Fix sizeof, should be the pointer not the class

This commit is contained in:
Jonas Kvinge 2025-01-17 07:12:25 +01:00
parent b919472241
commit 3a9ea81929

View File

@ -385,7 +385,7 @@ bool Queue::dropMimeData(const QMimeData *data, Qt::DropAction action, const int
Playlist *playlist = nullptr;
QList<int> source_rows;
QDataStream stream(data->data(QLatin1String(Playlist::kRowsMimetype)));
stream.readRawData(reinterpret_cast<char*>(&playlist), sizeof(Playlist));
stream.readRawData(reinterpret_cast<char*>(&playlist), sizeof(&playlist));
stream >> source_rows;
QModelIndexList source_indexes;