fix downloading, tidyup

This commit is contained in:
Thomas Menari 2009-06-12 13:41:09 +01:00
parent 64edf0371e
commit 96edaa8412

5
surf.c
View file

@ -109,9 +109,6 @@ download(WebKitDownload *o, GParamSpec *pspec, Client *c) {
if(status == WEBKIT_DOWNLOAD_STATUS_STARTED || status == WEBKIT_DOWNLOAD_STATUS_CREATED) {
c->progress = (int)(webkit_download_get_progress(c->download)*100);
}
else {
stop(c);
}
updatetitle(c, NULL);
}
@ -277,8 +274,6 @@ loadcommit(WebKitWebView *view, WebKitWebFrame *f, Client *c) {
void
loadstart(WebKitWebView *view, WebKitWebFrame *f, Client *c) {
if(c->download)
stop(c);
c->progress = 0;
updatetitle(c, NULL);
}