fix alt drag fx insertion
This commit is contained in:
parent
3638349286
commit
589ae93f6b
1 changed files with 68 additions and 67 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue