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) { if (cable) {
app::ModuleWidget* outputMw = APP->scene->rack->getModule(cable->outputModule->id); app::ModuleWidget* outputMw = APP->scene->rack->getModule(cable->outputModule->id);
if (!outputMw) 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); outputPort = outputMw->getOutput(cable->outputId);
if (!outputPort) if (!outputPort)
throw Exception("Cable cannot find output port %d", cable->outputId); throw Exception("Cable cannot find output port %d", cable->outputId);


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


Loading…
Cancel
Save