Browse Source

Disallow input port from Ctrl+dragging to create a new cable

tags/v0.4.0
Andrew Belt 7 years ago
parent
commit
a599b33e0f
2 changed files with 9 additions and 1 deletions
  1. +2
    -0
      CHANGELOG.md
  2. +7
    -1
      src/app/Port.cpp

+ 2
- 0
CHANGELOG.md View File

@@ -4,9 +4,11 @@ Tip: Use `git checkout v0.3.2` for example to check out any previous version men
### dev
- Cables can now stack on output ports
- Added sub-menus for each plugin, includes optional plugin metadata like URLs
- Added MIDI CC-to-CV Interface, updated MIDI-to-CV Interface
- Added new scrolling methods: middle-click-and-drag, shift-scroll, and arrow keys
- Added engine pausing in sample rate menu
- Added resizable blank to Core
- Added LEDs on plugs
- Support for AMD Phenom II processors
- Use self-contained Mac app bundle, no need for a Rack folder



+ 7
- 1
src/app/Port.cpp View File

@@ -36,8 +36,14 @@ void Port::onDragEnd() {
void Port::onDragStart() {
// Try to grab wire on top of stack
WireWidget *wire = gRackWidget->wireContainer->getTopWire(this);
if (guiIsModPressed()) {
if (type == INPUT)
return;
else
wire = NULL;
}

if (wire && !guiIsModPressed()) {
if (wire) {
// Disconnect existing wire
if (type == INPUT)
wire->inputPort = NULL;


Loading…
Cancel
Save