Commit 3f73db01 authored by Boudewijn Rempt's avatar Boudewijn Rempt

BUG:345332 Show the selected monitor profile if colord isn't active

parent e89d7045
......@@ -344,7 +344,14 @@ void ColorSettingsTab::toggleAllowMonitorProfileSelection(bool useSystemProfile)
}
}
else {
KisConfig cfg;
refillMonitorProfiles(KoID("RGBA", ""));
for(int i = 0; i < QApplication::desktop()->screenCount(); ++i) {
if (m_monitorProfileWidgets[i]->contains(cfg.monitorProfile(i))) {
m_monitorProfileWidgets[i]->setCurrent(cfg.monitorProfile(i));
}
}
}
}
......@@ -384,6 +391,7 @@ void ColorSettingsTab::refillMonitorProfiles(const KoID & s)
QList<const KoColorProfile *> profileList = KoColorSpaceRegistry::instance()->profilesFor(csf);
foreach (const KoColorProfile *profile, profileList) {
// qDebug() << "Profile" << profile->name() << profile->isSuitableForDisplay() << csf->defaultProfile();
if (profile->isSuitableForDisplay()) {
for (int i = 0; i < QApplication::desktop()->screenCount(); ++i) {
m_monitorProfileWidgets[i]->addSqueezedItem(profile->name());
......
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