aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-attachment-bar.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/misc/e-attachment-bar.c b/widgets/misc/e-attachment-bar.c
index 024d5bd8c7..c403285cca 100644
--- a/widgets/misc/e-attachment-bar.c
+++ b/widgets/misc/e-attachment-bar.c
@@ -419,8 +419,10 @@ update_remote_file (EAttachment *attachment, EAttachmentBar *bar)
char *msg, *base;
priv = bar->priv;
- if (attachment->percentage == -1)
- return update (bar);
+ if (attachment->percentage == -1) {
+ update (bar);
+ return;
+ }
base = g_path_get_basename(attachment->file_name);
msg = g_strdup_printf("%s (%d\%)", base, attachment->percentage);