Right click in empty area of Project Bin should show useful menu

parent 75d6f0c5
......@@ -1165,6 +1165,7 @@ void Bin::contextMenuEvent(QContextMenuEvent *event)
m_proxyAction->blockSignals(false);
}
}
}
// Enable / disable clip actions
m_proxyAction->setEnabled(enableClipActions);
......@@ -1176,7 +1177,12 @@ void Bin::contextMenuEvent(QContextMenuEvent *event)
m_clipsActionsMenu->setEnabled(enableClipActions);
m_extractAudioAction->setEnabled(enableClipActions);
// Show menu
m_menu->exec(event->globalPos());
if (enableClipActions) {
m_menu->exec(event->globalPos());
} else {
// Clicked in empty area
m_addButton->menu()->exec(event->globalPos());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment