color: Connect to the profile before doing cd_profile_equal -- we use the ID not the path
This commit is contained in:
parent
203046ccfb
commit
a44d36f993
1 changed files with 4 additions and 4 deletions
|
@ -347,10 +347,6 @@ gcm_prefs_add_profiles_suitable_for_devices (CcColorPanel *prefs,
|
|||
{
|
||||
profile_tmp = g_ptr_array_index (profile_array, i);
|
||||
|
||||
/* don't add the current profile */
|
||||
if (profile != NULL && cd_profile_equal (profile, profile_tmp))
|
||||
continue;
|
||||
|
||||
/* get properties */
|
||||
ret = cd_profile_connect_sync (profile_tmp,
|
||||
priv->cancellable,
|
||||
|
@ -362,6 +358,10 @@ gcm_prefs_add_profiles_suitable_for_devices (CcColorPanel *prefs,
|
|||
goto out;
|
||||
}
|
||||
|
||||
/* don't add the current profile */
|
||||
if (profile != NULL && cd_profile_equal (profile, profile_tmp))
|
||||
continue;
|
||||
|
||||
/* only add correct types */
|
||||
ret = gcm_prefs_is_profile_suitable_for_device (profile_tmp,
|
||||
priv->current_device);
|
||||
|
|
Loading…
Add table
Reference in a new issue