From 2e5330e54b28f60f8e0822810e98fcc032812b86 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 27 Dec 2008 20:35:25 +0000 Subject: [PATCH] - Removed code that is no longer needed --- src/GUI.cpp | 2 +- src/torrentAddition.h | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index efc52827b..5786d011b 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -901,7 +901,7 @@ void GUI::processDownloadedFiles(QString path, QString url) { bool useTorrentAdditionDialog = settings.value(QString::fromUtf8("Preferences/Downloads/AdditionDialog"), true).toBool(); if(useTorrentAdditionDialog) { torrentAdditionDialog *dialog = new torrentAdditionDialog(this, BTSession); - dialog->showLoad(path, false, url); + dialog->showLoad(path, url); }else{ BTSession->addTorrent(path, false, url); } diff --git a/src/torrentAddition.h b/src/torrentAddition.h index 9e9c596ae..75b16c64b 100644 --- a/src/torrentAddition.h +++ b/src/torrentAddition.h @@ -50,7 +50,6 @@ class torrentAdditionDialog : public QDialog, private Ui_addTorrentDialog{ QString fileName; QString hash; QString filePath; - bool fromScanDir; QString from_url; QStandardItemModel *PropListModel; PropListDelegate *PropDelegate; @@ -99,13 +98,12 @@ class torrentAdditionDialog : public QDialog, private Ui_addTorrentDialog{ delete PropListModel; } - void showLoad(QString filePath, bool fromScanDir=false, QString from_url=QString::null){ + void showLoad(QString filePath, QString from_url=QString::null){ if(!QFile::exists(filePath)) { close(); return; } this->filePath = filePath; - this->fromScanDir = fromScanDir; this->from_url = from_url; // Getting torrent file informations boost::intrusive_ptr t; @@ -433,7 +431,7 @@ class torrentAdditionDialog : public QDialog, private Ui_addTorrentDialog{ // save filtered files savePiecesPriorities(); // Add to download list - BTSession->addTorrent(filePath, fromScanDir, from_url); + BTSession->addTorrent(filePath, false, from_url); close(); } };