|
|
@ -155,6 +155,7 @@ options_imp::options_imp(QWidget *parent): |
|
|
|
connect(textSavePath, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton())); |
|
|
|
connect(textSavePath, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton())); |
|
|
|
connect(textTempPath, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton())); |
|
|
|
connect(textTempPath, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkAppendLabel, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkAppendLabel, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
|
|
|
|
connect(checkLastLocation, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkAppendqB, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkAppendqB, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkPreallocateAll, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkPreallocateAll, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkAdditionDialog, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
|
connect(checkAdditionDialog, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton())); |
|
|
@ -391,6 +392,7 @@ void options_imp::saveOptions(){ |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
pref.setTempPath(temp_path); |
|
|
|
pref.setTempPath(temp_path); |
|
|
|
pref.setAppendTorrentLabel(checkAppendLabel->isChecked()); |
|
|
|
pref.setAppendTorrentLabel(checkAppendLabel->isChecked()); |
|
|
|
|
|
|
|
pref.setRememberLastLocation(checkLastLocation->isChecked()); |
|
|
|
#if LIBTORRENT_VERSION_MINOR > 14 |
|
|
|
#if LIBTORRENT_VERSION_MINOR > 14 |
|
|
|
pref.useIncompleteFilesExtension(checkAppendqB->isChecked()); |
|
|
|
pref.useIncompleteFilesExtension(checkAppendqB->isChecked()); |
|
|
|
#endif |
|
|
|
#endif |
|
|
@ -568,6 +570,7 @@ void options_imp::loadOptions(){ |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
textTempPath->setText(temp_path); |
|
|
|
textTempPath->setText(temp_path); |
|
|
|
checkAppendLabel->setChecked(pref.appendTorrentLabel()); |
|
|
|
checkAppendLabel->setChecked(pref.appendTorrentLabel()); |
|
|
|
|
|
|
|
checkLastLocation->setChecked(pref.rememberLastLocation()); |
|
|
|
#if LIBTORRENT_VERSION_MINOR > 14 |
|
|
|
#if LIBTORRENT_VERSION_MINOR > 14 |
|
|
|
checkAppendqB->setChecked(pref.useIncompleteFilesExtension()); |
|
|
|
checkAppendqB->setChecked(pref.useIncompleteFilesExtension()); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|