Browse Source

Fix Exception format in CableWidget.

tags/v2.0.4
Andrew Belt 2 years ago
parent
commit
058c25caf4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/app/CableWidget.cpp

+ 2
- 2
src/app/CableWidget.cpp View File

@@ -169,14 +169,14 @@ void CableWidget::setCable(engine::Cable* cable) {
if (cable) {
app::ModuleWidget* outputMw = APP->scene->rack->getModule(cable->outputModule->id);
if (!outputMw)
throw Exception("Cable cannot find output ModuleWidget %lld", cable->outputModule->id);
throw Exception("Cable cannot find output ModuleWidget %ld", cable->outputModule->id);
outputPort = outputMw->getOutput(cable->outputId);
if (!outputPort)
throw Exception("Cable cannot find output port %d", cable->outputId);

app::ModuleWidget* inputMw = APP->scene->rack->getModule(cable->inputModule->id);
if (!inputMw)
throw Exception("Cable cannot find input ModuleWidget %lld", cable->inputModule->id);
throw Exception("Cable cannot find input ModuleWidget %ld", cable->inputModule->id);
inputPort = inputMw->getInput(cable->inputId);
if (!inputPort)
throw Exception("Cable cannot find input port %d", cable->inputId);


Loading…
Cancel
Save