Skip to content

Commit

Permalink
Automation Editor: Don't accept drag events when there's no pattern
Browse files Browse the repository at this point in the history
Fixes LMMS#4857
  • Loading branch information
lukas-w committed Mar 9, 2019
1 parent cdd1ddb commit edf9fb5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/editors/AutomationEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2565,6 +2565,9 @@ void AutomationEditorWindow::dropEvent( QDropEvent *_de )

void AutomationEditorWindow::dragEnterEvent( QDragEnterEvent *_dee )
{
if (! m_editor->validPattern() ) {
return;
}
StringPairDrag::processDragEnterEvent( _dee, "automatable_model" );
}

Expand Down

0 comments on commit edf9fb5

Please sign in to comment.