Fix LV2 instrument instantiation crash (#6977)
Fixes LV2 instrument instantiation crash which occurs when right-clicking an LV2 instrument in the plugin browser and then clicking "Send to new instrument track"
This commit is contained in:
@@ -282,9 +282,9 @@ void PluginDescWidget::leaveEvent( QEvent * _e )
|
||||
|
||||
void PluginDescWidget::mousePressEvent( QMouseEvent * _me )
|
||||
{
|
||||
Engine::setDndPluginKey(&m_pluginKey);
|
||||
if ( _me->button() == Qt::LeftButton )
|
||||
{
|
||||
Engine::setDndPluginKey(&m_pluginKey);
|
||||
new StringPairDrag("instrument",
|
||||
QString::fromUtf8(m_pluginKey.desc->name), m_logo, this);
|
||||
leaveEvent( _me );
|
||||
|
||||
Reference in New Issue
Block a user