diff options
Diffstat (limited to 'src/PatchageCanvas.cpp')
-rw-r--r-- | src/PatchageCanvas.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp index f2cce36..1a06674 100644 --- a/src/PatchageCanvas.cpp +++ b/src/PatchageCanvas.cpp @@ -140,8 +140,8 @@ PatchageCanvas::connect(boost::shared_ptr<Connectable> port1, boost::shared_ptr< if (!p1 || !p2) return; - if (p1->type() == JACK_AUDIO && p2->type() == JACK_AUDIO - || (p1->type() == JACK_MIDI && p2->type() == JACK_MIDI)) + if ((p1->type() == JACK_AUDIO && p2->type() == JACK_AUDIO) + || ((p1->type() == JACK_MIDI && p2->type() == JACK_MIDI))) _app->jack_driver()->connect(p1, p2); #ifdef HAVE_ALSA else if (p1->type() == ALSA_MIDI && p2->type() == ALSA_MIDI) @@ -175,8 +175,8 @@ PatchageCanvas::disconnect(boost::shared_ptr<Connectable> port1, boost::shared_p return; } - if (input->type() == JACK_AUDIO && output->type() == JACK_AUDIO - || input->type() == JACK_MIDI && output->type() == JACK_MIDI) + if ((input->type() == JACK_AUDIO && output->type() == JACK_AUDIO) + || (input->type() == JACK_MIDI && output->type() == JACK_MIDI)) _app->jack_driver()->disconnect(output, input); #ifdef HAVE_ALSA else if (input->type() == ALSA_MIDI && output->type() == ALSA_MIDI) |