[frogr] Don't show warning dialog after manually cancelling a process



commit 92169b9060581270e95b81f695e00e5d6c3d3f9c
Author: Mario Sanchez Prada <msanchez igalia com>
Date:   Tue Jan 25 17:26:00 2011 +0100

    Don't show warning dialog after manually cancelling a process

 src/frogr-controller.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/frogr-controller.c b/src/frogr-controller.c
index 3b0555b..e5bbd39 100644
--- a/src/frogr-controller.c
+++ b/src/frogr-controller.c
@@ -239,7 +239,7 @@ _notify_error_to_user (FrogrController *self, GError *error)
     {
     case FSP_ERROR_CANCELLED:
       msg = g_strdup (_("Process cancelled by the user"));
-      error_function = frogr_util_show_warning_dialog;
+      error_function = NULL; /* Don't notify the user about this */
       break;
 
     case FSP_ERROR_NETWORK_ERROR:
@@ -325,7 +325,7 @@ _notify_error_to_user (FrogrController *self, GError *error)
       break;
 
     default:
-      // General error: just dump the raw error description 
+      /* General error: just dump the raw error description */
       msg = g_strdup_printf (_("An error happened while uploading a picture: %s."),
                              error->message);
       error_function = frogr_util_show_error_dialog;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]