mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-06 03:44:29 +00:00
Folder scanning settings are now properly saved
This commit is contained in:
parent
3c396257de
commit
c8d0f5a104
@ -202,6 +202,8 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
|||||||
connect(actionTorrentDlOnDblClBox, SIGNAL(currentIndexChanged(int)), this, SLOT(enableApplyButton()));
|
connect(actionTorrentDlOnDblClBox, SIGNAL(currentIndexChanged(int)), this, SLOT(enableApplyButton()));
|
||||||
connect(actionTorrentFnOnDblClBox, SIGNAL(currentIndexChanged(int)), this, SLOT(enableApplyButton()));
|
connect(actionTorrentFnOnDblClBox, SIGNAL(currentIndexChanged(int)), this, SLOT(enableApplyButton()));
|
||||||
connect(checkTempFolder, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
connect(checkTempFolder, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||||
|
connect(addScanFolderButton, SIGNAL(clicked()), this, SLOT(enableApplyButton()));
|
||||||
|
connect(removeScanFolderButton, SIGNAL(clicked()), this, SLOT(enableApplyButton()));
|
||||||
// Connection tab
|
// Connection tab
|
||||||
connect(spinPort, SIGNAL(valueChanged(QString)), this, SLOT(enableApplyButton()));
|
connect(spinPort, SIGNAL(valueChanged(QString)), this, SLOT(enableApplyButton()));
|
||||||
connect(checkUPnP, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
connect(checkUPnP, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||||
|
@ -156,7 +156,7 @@ TransferListWidget::~TransferListWidget() {
|
|||||||
delete listDelegate;
|
delete listDelegate;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TransferListWidget::addTorrent(QTorrentHandle& h) {
|
void TransferListWidget::addTorrent(const QTorrentHandle& h) {
|
||||||
if(!h.is_valid()) return;
|
if(!h.is_valid()) return;
|
||||||
// Check that the torrent is not already there
|
// Check that the torrent is not already there
|
||||||
if(getRowFromHash(h.hash()) >= 0) return;
|
if(getRowFromHash(h.hash()) >= 0) return;
|
||||||
|
@ -95,7 +95,7 @@ protected slots:
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void refreshList();
|
void refreshList();
|
||||||
void addTorrent(QTorrentHandle& h);
|
void addTorrent(const QTorrentHandle& h);
|
||||||
void pauseTorrent(QTorrentHandle &h);
|
void pauseTorrent(QTorrentHandle &h);
|
||||||
void setFinished(QTorrentHandle &h);
|
void setFinished(QTorrentHandle &h);
|
||||||
void setSelectionLabel(QString label);
|
void setSelectionLabel(QString label);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user