Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TCO Ctrl+Drag crash #4862

Merged
merged 1 commit into from
Mar 18, 2019
Merged

Fix TCO Ctrl+Drag crash #4862

merged 1 commit into from
Mar 18, 2019

Conversation

lukas-w
Copy link
Member

@lukas-w lukas-w commented Mar 1, 2019

Proposed fix for #4844.

Fix some assumptions that source and target of a drag actions are the same track container. Instead of looking up necessary information (track name, type and container id) by track index, add it to the metadata.
Refactor canPasteSelection to take QDropEvent instead of the drop event's QMimeData so that QDropEvent::source() is available for checking if the source of the drag event is within the same LMMS instance. Coincidentally, this fixes the method to be consistent with its documentation.

Fix some assumptions that source and target of a drag actions are the same
track container. Instead of looking up necessary information (track name,
type and container id) by track index, add it to the metadata.
Refactor canPasteSelection to take QDropEvent instead of the drop event's
QMimeData. Coincidentally, this fixes the method to be consistent with its
documentation.

Fixes LMMS#4844
@lukas-w lukas-w merged commit e1adfc3 into LMMS:stable-1.2 Mar 18, 2019
@lukas-w lukas-w deleted the fix/drag-crash branch March 18, 2019 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants