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:
parent
b919472241
commit
3a9ea81929
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user