mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2025-09-20 09:47:28 -04:00
Fix #8: The "webview" web browser, started with the parameter, address with the name of the download file, downloads the same file multiple times.
This commit is contained in:
parent
a576b68db3
commit
84aec355b8
@ -222,7 +222,7 @@ void main()
|
||||
http.receive();
|
||||
|
||||
if (http_get_type==PAGE) {
|
||||
CheckContentType();
|
||||
CheckContentType();
|
||||
prbar.max = http.content_length;
|
||||
if (prbar.value != http.content_received) {
|
||||
prbar.value = http.content_received;
|
||||
@ -946,8 +946,10 @@ void CheckContentType()
|
||||
StopLoading();
|
||||
}
|
||||
else if (content_type[0] == 'a') {
|
||||
EventOpenDownloader(http.cur_url);
|
||||
http_get_type = FILE;
|
||||
StopLoading();
|
||||
if (!canvas.bufw) OpenPage(DEFAULT_URL); //Fixed: Browser was launched with file param
|
||||
EventOpenDownloader(http.cur_url);
|
||||
}
|
||||
else {
|
||||
WB1.custom_encoding = -1;
|
||||
|
@ -1,5 +1,5 @@
|
||||
enum {
|
||||
PAGE=1, IMG
|
||||
PAGE=1, IMG, FILE
|
||||
};
|
||||
|
||||
struct _cache
|
||||
|
Loading…
x
Reference in New Issue
Block a user