[gnome-color-manager] trivial: delete state if we are calibrating a local printer
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: delete state if we are calibrating a local printer
- Date: Tue, 23 Feb 2010 20:19:21 +0000 (UTC)
commit a659931c690a1bf275106c1c45b9acfaf3a38d9b
Author: Richard Hughes <richard hughsie com>
Date: Tue Feb 23 20:18:40 2010 +0000
trivial: delete state if we are calibrating a local printer
src/gcm-calibrate-argyll.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-calibrate-argyll.c b/src/gcm-calibrate-argyll.c
index 90590e1..cec5e23 100644
--- a/src/gcm-calibrate-argyll.c
+++ b/src/gcm-calibrate-argyll.c
@@ -1597,6 +1597,14 @@ gcm_calibrate_argyll_printer (GcmCalibrate *calibrate, GtkWindow *window, GError
ret = gcm_calibrate_argyll_device_generate_profile (calibrate_argyll, error);
if (!ret)
goto out;
+
+ /* only delete state if we are doing a local printer */
+ if (print_kind == GCM_CALIBRATE_PRINT_KIND_LOCAL) {
+ /* step 5 */
+ ret = gcm_calibrate_argyll_finish (calibrate_argyll, error);
+ if (!ret)
+ goto out;
+ }
out:
g_free (cmdline);
g_free (working_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]