[gnome-color-manager] Do not try to apply devices that are not connected
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Do not try to apply devices that are not connected
- Date: Sun, 25 Jul 2010 13:22:37 +0000 (UTC)
commit 8d2dfd805048d6c41a78399132869620a3c2e6e6
Author: Richard Hughes <richard hughsie com>
Date: Sat Jul 24 23:04:40 2010 +0100
Do not try to apply devices that are not connected
src/cc-color-panel.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/cc-color-panel.c b/src/cc-color-panel.c
index dacca20..0f9ddce 100644
--- a/src/cc-color-panel.c
+++ b/src/cc-color-panel.c
@@ -2404,6 +2404,11 @@ cc_color_panel_reset_devices_idle_cb (CcColorPanel *panel)
for (i=0; i<array->len; i++) {
device = g_ptr_array_index (array, i);
+ /* we don't care */
+ ret = gcm_device_get_connected (device);
+ if (!ret)
+ continue;
+
/* set gamma for device */
ret = gcm_device_apply (device, &error);
if (!ret) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]