autoremove file only if configured to clean up; refs #119

master
Marc Wäckerlin 13 years ago
parent 2adc5c544d
commit 4a69424a38
  1. 2
      src/browser.hxx

@ -1451,7 +1451,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
== _downloadProcesses.end()) return; == _downloadProcesses.end()) return;
if (_downloadProcesses[qobject_cast<QProcess*>(sender())]) if (_downloadProcesses[qobject_cast<QProcess*>(sender())])
_downloadProcesses[qobject_cast<QProcess*>(sender())] _downloadProcesses[qobject_cast<QProcess*>(sender())]
->setAutoRemove(true); ->setAutoRemove(_settings.flag("CloseApps"));
delete _downloadProcesses[qobject_cast<QProcess*>(sender())]; delete _downloadProcesses[qobject_cast<QProcess*>(sender())];
_downloadProcesses.erase(qobject_cast<QProcess*>(sender())); _downloadProcesses.erase(qobject_cast<QProcess*>(sender()));
} }

Loading…
Cancel
Save