forked from KolibriOS/kolibrios
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:
@@ -222,7 +222,7 @@ void main()
|
|||||||
http.receive();
|
http.receive();
|
||||||
|
|
||||||
if (http_get_type==PAGE) {
|
if (http_get_type==PAGE) {
|
||||||
CheckContentType();
|
CheckContentType();
|
||||||
prbar.max = http.content_length;
|
prbar.max = http.content_length;
|
||||||
if (prbar.value != http.content_received) {
|
if (prbar.value != http.content_received) {
|
||||||
prbar.value = http.content_received;
|
prbar.value = http.content_received;
|
||||||
@@ -946,8 +946,10 @@ void CheckContentType()
|
|||||||
StopLoading();
|
StopLoading();
|
||||||
}
|
}
|
||||||
else if (content_type[0] == 'a') {
|
else if (content_type[0] == 'a') {
|
||||||
EventOpenDownloader(http.cur_url);
|
http_get_type = FILE;
|
||||||
StopLoading();
|
StopLoading();
|
||||||
|
if (!canvas.bufw) OpenPage(DEFAULT_URL); //Fixed: Browser was launched with file param
|
||||||
|
EventOpenDownloader(http.cur_url);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
WB1.custom_encoding = -1;
|
WB1.custom_encoding = -1;
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
enum {
|
enum {
|
||||||
PAGE=1, IMG
|
PAGE=1, IMG, FILE
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _cache
|
struct _cache
|
||||||
|
Reference in New Issue
Block a user