diff --git a/ChangeLog b/ChangeLog index 9276c91df5..0ae11afa16 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-03-18 Sven Neumann + + * plug-ins/uri/uri-backend-gio.c (uri_progress_callback): + corrected last change. + 2008-03-18 Sven Neumann * app/config/gimpguiconfig.c (DEFAULT_WEB_BROWSER): changed diff --git a/plug-ins/uri/uri-backend-gio.c b/plug-ins/uri/uri-backend-gio.c index 4c1f1fb5ad..4cdf6e0ddc 100644 --- a/plug-ins/uri/uri-backend-gio.c +++ b/plug-ins/uri/uri-backend-gio.c @@ -181,7 +181,8 @@ uri_progress_callback (goffset current_num_bytes, /* update the progress only up to 10 times a second */ g_get_current_time (&now); - if (((now.tv_sec - progress->last_time.tv_sec) * 1000 + + if (progress->last_time.tv_sec && + ((now.tv_sec - progress->last_time.tv_sec) * 1000 + (now.tv_usec - progress->last_time.tv_usec) / 1000) < 100) return; @@ -270,7 +271,7 @@ copy_uri (const gchar *src_uri, GimpRunMode run_mode, GError **error) { - GVfs *vfs = g_vfs_get_default (); + GVfs *vfs; GFile *src_file; GFile *dest_file; UriProgress progress = { 0, };