mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
Added %n (torrent name) parameter to external program call
This commit is contained in:
parent
5e7de313fc
commit
53b6a25442
61 changed files with 2000 additions and 1751 deletions
|
@ -1977,6 +1977,8 @@ void QBtSession::autoRunExternalProgram(const QTorrentHandle &h, bool async) {
|
|||
else
|
||||
torrent_path = h.save_path();
|
||||
program.replace("%f", torrent_path);
|
||||
// Replace %n by torrent name
|
||||
program.replace("%n", h.name());
|
||||
QProcess *process = new QProcess;
|
||||
if(async) {
|
||||
connect(process, SIGNAL(finished(int)), this, SLOT(cleanUpAutoRunProcess(int)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue