summaryrefslogtreecommitdiff
path: root/embed/downloader-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'embed/downloader-view.c')
-rw-r--r--embed/downloader-view.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index 9ec3ac2da..300901853 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -406,7 +406,7 @@ update_download_row (DownloaderView *dv, EphyDownload *download)
name = ephy_download_get_name (download);
- if (total != -1)
+ if (total != -1 && current != -1)
{
char *total_progress;
@@ -416,10 +416,14 @@ update_download_row (DownloaderView *dv, EphyDownload *download)
cur_progress, total_progress);
g_free (total_progress);
}
- else
+ else if (current != -1)
{
file = g_strdup_printf ("%s\n%s", name, cur_progress);
}
+ else
+ {
+ file = g_strdup_printf ("%s\n%s", name, _("Unknown"));
+ }
if (remaining_secs < 0)
{