Commit d9272a75 authored by Johnny Jazeix's avatar Johnny Jazeix
Browse files

fix compilation with Qt < 5.14

parent 3d9cf098
......@@ -491,10 +491,16 @@ void KMixWindow::loadBaseConfig()
{
KConfigGroup config(KSharedConfig::openConfig(), "Global");
GlobalConfigData& gcd = GlobalConfig::instance().data;
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
QList<QString> preferredMixersInSoundMenu;
preferredMixersInSoundMenu = config.readEntry("Soundmenu.Mixers", preferredMixersInSoundMenu);
GlobalConfig::instance().setMixersForSoundmenu(preferredMixersInSoundMenu.toSet());
#else
const QStringList preferredMixers = config.readEntry("Soundmenu.Mixers", QStringList());
const QSet<QString> preferredMixersSet(preferredMixers.begin(), preferredMixers.end());
GlobalConfig::instance().setMixersForSoundmenu(preferredMixersSet);
#endif
m_startVisible = config.readEntry("Visible", false);
m_multiDriverMode = config.readEntry("MultiDriver", false);
m_defaultCardOnStart = config.readEntry("DefaultCardOnStart", "");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment