/* Pick the main window if it exists */
win = modest_window_mgr_get_main_window (modest_runtime_get_window_mgr ());
+ /* This seems to be necessary to show new messages in the current window.
+ * I would expect this to be after the send_receive, but maybe
+ * this makes a connection too. murrayc. */
+ modest_do_refresh_current_folder (win);
+
/* Send & receive all if "Update automatically" is set */
/* TODO: check the auto-update parameter in the configuration */
modest_ui_actions_do_send_receive_all (win);
DBusMessage *message,
void *user_data)
{
- printf ("DEBUG: %s\n", __FUNCTION__);
gboolean handled = FALSE;
if (dbus_message_is_method_call (message,
handled = TRUE;
}
else {
- g_debug (" debug: %s: Unexpected D-Bus method: Interface=%s, Member=%s\n",
+ /* Note that this mentions methods that were already handled in modest_dbus_req_handler(). */
+ g_debug (" debug: %s: Unexpected (maybe already handled) D-Bus method:\n Interface=%s, Member=%s\n",
__FUNCTION__, dbus_message_get_interface (message),
dbus_message_get_member(message));
}