From 3f10d9312b2c4060f85e1e2d43ef000c0a35ae01 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Thu, 2 Jul 2009 17:16:42 +0200 Subject: [PATCH] Use the proper call to retrieve the transport account --- src/modest-utils.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/modest-utils.c b/src/modest-utils.c index 3c2ad2f..4447e5e 100644 --- a/src/modest-utils.c +++ b/src/modest-utils.c @@ -1149,10 +1149,9 @@ modest_utils_flush_send_queue (const gchar *account_id) /* Get the transport account */ account = (TnyTransportAccount *) - modest_tny_account_store_get_tny_account_by (modest_runtime_get_account_store (), - MODEST_TNY_ACCOUNT_STORE_QUERY_ID, - account_id); - + modest_tny_account_store_get_server_account (modest_runtime_get_account_store (), + account_id, + TNY_ACCOUNT_TYPE_TRANSPORT); if (account) { ModestMailOperation *wakeup_op; ModestTnySendQueue *send_queue = modest_runtime_get_send_queue (account, TRUE); -- 1.7.9.5