mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
Web UI code optimization
This commit is contained in:
@@ -403,7 +403,7 @@ void HttpConnection::respondCommand(const QString& command) {
|
||||
tmpfile->write(m_parser.torrent());
|
||||
tmpfile->close();
|
||||
emit torrentReadyToBeDownloaded(tmpfile->fileName(), false, QString(), false);
|
||||
delete tmpfile;
|
||||
tmpfile->deleteLater();
|
||||
} else {
|
||||
std::cerr << "I/O Error: Could not create temporary file" << std::endl;
|
||||
delete tmpfile;
|
||||
|
||||
Reference in New Issue
Block a user