Fixes NB#140509, sync() currently viewed folder on send&receive even with auto-updates
[modest] / src / modest-tny-account-store.c
index 837a9f5..50ad50b 100644 (file)
@@ -65,7 +65,6 @@
 
 #ifdef MODEST_PLATFORM_MAEMO
 #include <tny-maemo-conic-device.h>
-#include <maemo/modest-maemo-utils.h>
 #endif
 
 #include <libgnomevfs/gnome-vfs-volume-monitor.h>
@@ -1084,7 +1083,8 @@ modest_tny_account_store_alert (TnyAccountStore *self,
        gboolean retval = TRUE;
 
        /* NOTE: account may be NULL in some cases */
-       g_return_val_if_fail (error, FALSE);
+       if (!error)
+               return FALSE;
 
        /* Get the server name: */
        if (account) {