summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-11-06 08:24:21 +0000
committerRichard Hughes <richard@hughsie.com>2017-11-06 19:19:59 +0000
commit4df4035a3a88109e831240fed9843db5d2393d29 (patch)
treebcf6043ad0391e4e06d98a2d261b6fe840fb30b0
parent8e2e16015269ce98e34dd829e2a1dfd9bca54568 (diff)
downloadcolord-1-3.tar.gz
Fix the detection of duplicate EDIDs by comparing the hash value, not the IDcolord-1-3
Fixes: https://github.com/hughsie/colord/issues/60
-rw-r--r--src/cd-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cd-main.c b/src/cd-main.c
index ee475f8..544d32d 100644
--- a/src/cd-main.c
+++ b/src/cd-main.c
@@ -2406,7 +2406,7 @@ cd_main_check_duplicate_edids (void)
use_xrandr_mode = TRUE;
}
g_hash_table_insert (hash,
- g_strdup (cd_main_get_display_id (edid)),
+ g_strdup (cd_edid_get_checksum (edid)),
GINT_TO_POINTER (1));
}
return use_xrandr_mode;