From 1a6906bbb3ce5919a2fb152a106247a3af7c7f04 Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Wed, 30 Apr 2014 22:58:54 +0200 Subject: [PATCH] Input name missing from mixer sources --- companion/src/modeledit/mixes.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/companion/src/modeledit/mixes.cpp b/companion/src/modeledit/mixes.cpp index 56bf98c47..7b01d83e6 100644 --- a/companion/src/modeledit/mixes.cpp +++ b/companion/src/modeledit/mixes.cpp @@ -170,6 +170,10 @@ QString MixesPanel::getMixerText(int dest, bool * new_ch) default: str += " "; break; }; + //set mixer src model if it is unset (srcRaw needs this to generate proper toString() for input source type) + if (md->srcRaw.model == 0) + md->srcRaw.model = &model; + //highlight source if needed if ( (md->srcRaw.type == SOURCE_TYPE_CH) && (md->srcRaw.index+1 == (int)highlightedSource) ) { str += " " + Qt::escape(md->srcRaw.toString()) + "";