[PATCH] [kcms/phonon] Don't overwrite audio profile entries with same priority

Bernie Innocenti bernie at codewiz.org
Mon Jun 15 08:35:50 UTC 2015


This is a bug that's been annoying me for ages. My system has 3 HDMI
ports, and HDMI2 would show in pavucontrol, but not show in kcm_phonon.
The reason was that HDMI3 had the same priority of HDMI2 and would be
overridden in the cardInfo profiles QMap.
---
 kcms/phonon/audiosetup.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kcms/phonon/audiosetup.h b/kcms/phonon/audiosetup.h
index dfb25bf..72fb2be 100644
--- a/kcms/phonon/audiosetup.h
+++ b/kcms/phonon/audiosetup.h
@@ -33,7 +33,7 @@ typedef struct {
     quint32 index;
     QString name;
     QString icon;
-    QMap<quint32, QPair<QString, QString> > profiles;
+    QMultiMap<quint32, QPair<QString, QString> > profiles;
     QString activeProfile;
 } cardInfo;
 
-- 
2.4.3



More information about the Plasma-devel mailing list