|
|
@ -960,6 +960,14 @@ void MainWindow::processParams(const QStringList& params) { |
|
|
|
if (misc::isUrl(param)) { |
|
|
|
if (misc::isUrl(param)) { |
|
|
|
QBtSession::instance()->downloadFromUrl(param); |
|
|
|
QBtSession::instance()->downloadFromUrl(param); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
|
|
|
|
if(param.startsWith("qbt://show", Qt::CaseInsensitive)) { |
|
|
|
|
|
|
|
if(!ui_locked) { |
|
|
|
|
|
|
|
show(); |
|
|
|
|
|
|
|
activateWindow(); |
|
|
|
|
|
|
|
raise(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return; // Do not process more params
|
|
|
|
|
|
|
|
} |
|
|
|
if (param.startsWith("bc://bt/", Qt::CaseInsensitive)) { |
|
|
|
if (param.startsWith("bc://bt/", Qt::CaseInsensitive)) { |
|
|
|
qDebug("Converting bc link to magnet link"); |
|
|
|
qDebug("Converting bc link to magnet link"); |
|
|
|
param = misc::bcLinkToMagnet(param); |
|
|
|
param = misc::bcLinkToMagnet(param); |
|
|
|