Commit 58364da5 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Disable the system monitor check if colord doesn't give us devices

parent 9deeaf80
......@@ -307,7 +307,9 @@ ColorSettingsTab::ColorSettingsTab(QWidget *parent, const char *name)
// XXX: no color management integration on Windows or OSX yet
#ifndef HAVE_X11
m_page->chkUseSystemMonitorProfile->setVisible(false);
if (KisColorManager::instance()->devices() > 0) {
m_page->chkUseSystemMonitorProfile->setVisible(false);
}
#endif
m_page->cmbWorkingColorSpace->setIDList(KoColorSpaceRegistry::instance()->listKeys());
m_page->cmbWorkingColorSpace->setCurrent(cfg.workingColorSpace());
......
......@@ -409,7 +409,7 @@ const KoColorProfile *KisConfig::getScreenProfile(int screen)
KisConfig cfg;
QString monitorId;
if (KisColorManager::instance()->devices().size() > screen && screen > 0) {
if (KisColorManager::instance()->devices().size() > screen) {
monitorId = cfg.monitorForScreen(screen, KisColorManager::instance()->devices()[screen]);
}
//dbgKrita << "getScreenProfile(). Screen" << screen << "monitor id" << monitorId;
......
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