FEATURE: Added "No action" setting for double-click action

This commit is contained in:
Christophe Dumez 2010-05-21 12:30:57 +00:00
parent 10d6dd5a23
commit cc97ee86df
4 changed files with 28 additions and 30 deletions

View file

@ -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) {