mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
FEATURE: Added "No action" setting for double-click action
This commit is contained in:
parent
10d6dd5a23
commit
cc97ee86df
4 changed files with 28 additions and 30 deletions
|
@ -568,11 +568,10 @@ void TransferListWidget::torrentDoubleClicked(const QModelIndex& index) {
|
|||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||
if(!h.is_valid()) return;
|
||||
int action;
|
||||
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
||||
if(h.is_seed()) {
|
||||
action = settings.value(QString::fromUtf8("Preferences/Downloads/DblClOnTorFN"), 0).toInt();
|
||||
action = Preferences::getActionOnDblClOnTorrentFn();
|
||||
} else {
|
||||
action = settings.value(QString::fromUtf8("Preferences/Downloads/DblClOnTorDl"), 0).toInt();
|
||||
action = Preferences::getActionOnDblClOnTorrentDl();
|
||||
}
|
||||
|
||||
switch(action) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue