diff --git a/src/browser.hxx b/src/browser.hxx index 9f37aa6..65e0d6f 100644 --- a/src/browser.hxx +++ b/src/browser.hxx @@ -247,6 +247,7 @@ class Browser: public QMainWindow, protected Ui::Browser { delete it->second; it->second = 0; if (_settings.flag("CloseApps")) { + LOG<<"terminate process"; it->first->terminate(); delete it->first; } @@ -1319,10 +1320,11 @@ class Browser: public QMainWindow, protected Ui::Browser { it!=rh.end(); ++it) { LOG<<"RawHeader:"<first<second; } - if (reply->isFinished()) + if (reply->isFinished()) { handleContent(reply); - else + } else { assert(connect(reply, SIGNAL(finished()), SLOT(downloadFinished()))); + } } void downloadFinished() { @@ -1353,7 +1355,6 @@ class Browser: public QMainWindow, protected Ui::Browser { (_settings.mimetype (reply->header(QNetworkRequest::ContentTypeHeader).toString(), filename)); - if (!type.isEmpty()) unsupportedContent(reply); } void handleContent(QNetworkReply* reply) {