mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-29 19:18:42 -07:00
Email notification on download completion
This commit is contained in:
parent
ee01c2c745
commit
d8dd3834c3
39 changed files with 3887 additions and 2380 deletions
|
@ -199,6 +199,9 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
|||
connect(checkTempFolder, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||
connect(addScanFolderButton, SIGNAL(clicked()), this, SLOT(enableApplyButton()));
|
||||
connect(removeScanFolderButton, SIGNAL(clicked()), this, SLOT(enableApplyButton()));
|
||||
connect(groupMailNotification, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||
connect(dest_email_txt, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
||||
connect(smtp_server_txt, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
||||
// Connection tab
|
||||
connect(spinPort, SIGNAL(valueChanged(QString)), this, SLOT(enableApplyButton()));
|
||||
connect(checkUPnP, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||
|
@ -387,6 +390,9 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
|||
export_dir = export_dir.replace("\\", "/");
|
||||
#endif
|
||||
Preferences::setExportDir(export_dir);
|
||||
Preferences::setMailNotificationEnabled(groupMailNotification->isChecked());
|
||||
Preferences::setMailNotificationEmail(dest_email_txt->text());
|
||||
Preferences::setMailNotificationSMTP(smtp_server_txt->text());
|
||||
settings.setValue(QString::fromUtf8("DblClOnTorDl"), getActionOnDblClOnTorrentDl());
|
||||
settings.setValue(QString::fromUtf8("DblClOnTorFn"), getActionOnDblClOnTorrentFn());
|
||||
// End Downloads preferences
|
||||
|
@ -602,7 +608,9 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
|||
#endif
|
||||
textExportDir->setText(strValue);
|
||||
}
|
||||
|
||||
groupMailNotification->setChecked(Preferences::isMailNotificationEnabled());
|
||||
dest_email_txt->setText(Preferences::getMailNotificationEmail());
|
||||
smtp_server_txt->setText(Preferences::getMailNotificationSMTP());
|
||||
intValue = Preferences::getActionOnDblClOnTorrentDl();
|
||||
if(intValue >= actionTorrentDlOnDblClBox->count())
|
||||
intValue = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue