summaryrefslogtreecommitdiffstats
path: root/src/slxoutput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/slxoutput.cpp')
-rw-r--r--src/slxoutput.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/slxoutput.cpp b/src/slxoutput.cpp
index 5bc319b..b1da26f 100644
--- a/src/slxoutput.cpp
+++ b/src/slxoutput.cpp
@@ -56,9 +56,11 @@ SlxOutput::SlxOutput(ItemType type, const QString &id,
defaultToggleButton->setChecked(true);
}
if (_type == CardProfileItem) {
- enableCard(_cardId, _profileId);
- } else {
+ enableCard(_cardId, _profileId, _portId);
+ } else if (_type == SinkPortItem) {
enableSink(_deviceId, _portId);
+ } else {
+ enableSource(_deviceId, _portId);
}
});
}