Skip to content

Commit

Permalink
fix drag-n-drop from Source player on Wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Jan 9, 2025
1 parent a09c0c6 commit 7d4a086
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/models/playlistmodel.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2024 Meltytech, LLC
* Copyright (c) 2012-2025 Meltytech, LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -496,7 +496,7 @@ QVariant PlaylistModel::headerData(int section, Qt::Orientation orientation, int

Qt::DropActions PlaylistModel::supportedDropActions() const
{
return Qt::CopyAction | Qt::MoveAction | Qt::LinkAction;
return Qt::CopyAction | Qt::MoveAction;
}

bool PlaylistModel::insertRows(int row, int count, const QModelIndex &parent)
Expand Down
4 changes: 2 additions & 2 deletions src/videowidget.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011-2024 Meltytech, LLC
* Copyright (c) 2011-2025 Meltytech, LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -199,7 +199,7 @@ void VideoWidget::mouseMoveEvent(QMouseEvent *event)
drag->setPixmap(QPixmap::fromImage(displayImage));
}
drag->setHotSpot(QPoint(0, 0));
drag->exec(Qt::LinkAction);
drag->exec(Qt::CopyAction);
}

void VideoWidget::keyPressEvent(QKeyEvent *event)
Expand Down

0 comments on commit 7d4a086

Please sign in to comment.