summaryrefslogtreecommitdiffstats
path: root/src/effects/effectchainslot.cpp
diff options
context:
space:
mode:
authorbe_ <be.0@gmx.com>2016-12-27 12:08:18 -0600
committerbe_ <be.0@gmx.com>2017-01-19 14:39:44 -0600
commit50cc903ace93a40fb9d72f304458b23efcb6f7d7 (patch)
tree9c4baf49c7331f96bc55d0da7bad5842a7c50f2a /src/effects/effectchainslot.cpp
parentd826eca898606138e2eebdb182491f6430fc22cd (diff)
add Mixxx version to effects.xml
Diffstat (limited to 'src/effects/effectchainslot.cpp')
-rw-r--r--src/effects/effectchainslot.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/effects/effectchainslot.cpp b/src/effects/effectchainslot.cpp
index 4cd8a1b22a..fdbdb3035d 100644
--- a/src/effects/effectchainslot.cpp
+++ b/src/effects/effectchainslot.cpp
@@ -435,6 +435,9 @@ unsigned int EffectChainSlot::getChainSlotNumber() const {
QDomElement EffectChainSlot::toXML(QDomDocument* doc) const {
QDomElement chainElement = doc->createElement("EffectChain");
+ if (m_slots.size() == 0) {
+ return chainElement;
+ }
XmlParse::addElement(*doc, chainElement, "Name",
m_pEffectChain->name());