[evolution-data-server] Fix bug #624909
- From: Jeff Cai <jeffcai src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Fix bug #624909
- Date: Wed, 21 Jul 2010 10:18:48 +0000 (UTC)
commit add347c79f3cedf5376753f0ba874289ffd889a7
Author: Jeff Cai <jeff cai sun com>
Date: Wed Jul 21 18:18:12 2010 +0800
Fix bug #624909
camel/providers/imapx/camel-imapx-server.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index b807bdd..bab7c5c 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -1528,9 +1528,10 @@ imapx_untagged(CamelIMAPXServer *imap, GError **error)
g_hash_table_remove (ifolder->ignore_recent, mi->uid);
}
- if (job->op)
- camel_operation_progress (job->op, (camel_folder_summary_count (job->folder->summary)
- * 100)/ifolder->exists_on_server?:1);
+ if (job->op) {
+ int cnt = (camel_folder_summary_count (job->folder->summary) * 100 )/ifolder->exists_on_server;
+ camel_operation_progress (job->op, cnt?cnt:1);
+ }
}
}
}
@@ -2382,7 +2383,7 @@ imapx_command_select_done (CamelIMAPXServer *is, CamelIMAPXCommand *ic)
&cw->error, CAMEL_IMAPX_ERROR, 1,
"SELECT %s failed: %s",
camel_folder_get_full_name(cw->select),
- ic->status->text?:"<unknown reason>");
+ ic->status->text? ic->status->text:"<unknown reason>");
cw->complete(is, cw);
cw = cn;
cn = cn->next;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]