Adapted to latest Tinymail API
authorPhilip Van Hoof <philip@codeminded.be>
Mon, 17 Sep 2007 15:48:38 +0000 (15:48 +0000)
committerPhilip Van Hoof <philip@codeminded.be>
Mon, 17 Sep 2007 15:48:38 +0000 (15:48 +0000)
pmo-trunk-r3321

src/modest-tny-account.c

index 71c531d..3f24610 100644 (file)
@@ -554,13 +554,13 @@ forget_pass_dummy (TnyAccount *account)
 
 
 static void
 
 
 static void
-set_online_callback (TnyCamelAccount *account, GError *err, gpointer user_data)
+set_online_callback (TnyCamelAccount *account, gboolean canceled, GError *err, gpointer user_data)
 {
        /* MODEST TODO: Show a real error message here, this is a significant error!
         * Perhaps show the account's settings dialog again?! Reconnecting after 
         * changing the settings of an account failed in this situation. */
 
 {
        /* MODEST TODO: Show a real error message here, this is a significant error!
         * Perhaps show the account's settings dialog again?! Reconnecting after 
         * changing the settings of an account failed in this situation. */
 
-       if (err)
+       if (err && !canceled)
                g_warning ("err: %s", err->message);
 }
 
                g_warning ("err: %s", err->message);
 }