fix alt drag fx insertion

This commit is contained in:
shun-iwasawa 2021-03-18 19:29:35 +09:00 committed by manongjohn
parent 3638349286
commit 589ae93f6b

View file

@ -1935,14 +1935,15 @@ void FxSchematicScene::simulateDisconnectSelection(bool disconnect) {
void FxSchematicScene::simulateInsertSelection(SchematicLink *link,
bool connect) {
if (!link || !connect) {
// first, remove all connected links
m_connectionLinks.showBridgeLinks();
m_connectionLinks.hideInputLinks();
m_connectionLinks.hideOutputLinks();
m_connectionLinks.removeBridgeLinks();
m_connectionLinks.removeInputLinks(true);
m_connectionLinks.removeOutputLinks(true);
} else {
if (!link || !connect) return;
if (m_disconnectionLinks.isABridgeLink(link) || m_selection->isEmpty())
return;
@ -1986,7 +1987,7 @@ void FxSchematicScene::simulateInsertSelection(SchematicLink *link,
m_connectionLinks.showInputLinks();
m_connectionLinks.showOutputLinks();
}
}
//------------------------------------------------------------
/*! in order to select nods after pasting the copied fx nodes from FxSelection
*/