|
|
|
@ -115,6 +115,7 @@ class Browser: public QMainWindow, protected Ui::Browser { |
|
|
|
|
|
|
|
|
|
~Browser() { |
|
|
|
|
LOG; |
|
|
|
|
if (_settings.flag("CloseApps")) |
|
|
|
|
for (DownloadProcesses::iterator it(_downloadProcesses.begin()); |
|
|
|
|
it!=_downloadProcesses.end(); ++it) { |
|
|
|
|
LOG<<"delete:"<<it->second->fileName(); |
|
|
|
@ -1020,7 +1021,7 @@ class Browser: public QMainWindow, protected Ui::Browser { |
|
|
|
|
if (it!=_settings.mimetypes().end()) { |
|
|
|
|
QTemporaryFile *file = |
|
|
|
|
new QTemporaryFile(QDir::tempPath()+QDir::separator() |
|
|
|
|
+"swisssurferXXXXXX." |
|
|
|
|
+"swisssurferXXXXXX" |
|
|
|
|
+it.value().toStringList().at(0), this); |
|
|
|
|
file->open(); |
|
|
|
|
file->write(reply->readAll()); |
|
|
|
@ -1051,6 +1052,7 @@ class Browser: public QMainWindow, protected Ui::Browser { |
|
|
|
|
|
|
|
|
|
void processFinished() { |
|
|
|
|
LOG; |
|
|
|
|
if (_settings.flag("CloseApps")) |
|
|
|
|
delete _downloadProcesses[qobject_cast<QProcess*>(sender())]; |
|
|
|
|
_downloadProcesses.erase(qobject_cast<QProcess*>(sender())); |
|
|
|
|
} |
|
|
|
|