Automation Editor: Don't accept drag events when there's no pattern
Fixes #4857
This commit is contained in:
@@ -2565,6 +2565,9 @@ void AutomationEditorWindow::dropEvent( QDropEvent *_de )
|
||||
|
||||
void AutomationEditorWindow::dragEnterEvent( QDragEnterEvent *_dee )
|
||||
{
|
||||
if (! m_editor->validPattern() ) {
|
||||
return;
|
||||
}
|
||||
StringPairDrag::processDragEnterEvent( _dee, "automatable_model" );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user