From: Sergio Villar Senin Date: Thu, 2 Jul 2009 15:16:42 +0000 (+0200) Subject: Use the proper call to retrieve the transport account X-Git-Tag: 3.0.17-rc22~3 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=3f10d9312b2c4060f85e1e2d43ef000c0a35ae01 Use the proper call to retrieve the transport account --- 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);