mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 00:17:23 -06:00
Move option "Confirm torrent deletion" to Behavior page
This commit is contained in:
committed by
sledgehammer999
parent
e3f6cea95c
commit
e29a714da4
@@ -135,6 +135,7 @@ options_imp::options_imp(QWidget *parent):
|
||||
// Apply button is activated when a value is changed
|
||||
// General tab
|
||||
connect(comboI18n, SIGNAL(currentIndexChanged(int)), this, SLOT(enableApplyButton()));
|
||||
connect(confirmDeletion, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||
connect(checkAltRowColors, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||
connect(checkShowSystray, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||
connect(checkCloseToSystray, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||
@@ -374,6 +375,7 @@ void options_imp::saveOptions() {
|
||||
|
||||
// General preferences
|
||||
pref->setLocale(locale);
|
||||
pref->setConfirmTorrentDeletion(confirmDeletion->isChecked());
|
||||
pref->setAlternatingRowColors(checkAltRowColors->isChecked());
|
||||
pref->setSystrayIntegration(systrayIntegration());
|
||||
pref->setTrayIconStyle(TrayIcon::Style(comboTrayIcon->currentIndex()));
|
||||
@@ -537,6 +539,7 @@ void options_imp::loadOptions() {
|
||||
// General preferences
|
||||
const Preferences* const pref = Preferences::instance();
|
||||
setLocale(pref->getLocale());
|
||||
confirmDeletion->setChecked(pref->confirmTorrentDeletion());
|
||||
checkAltRowColors->setChecked(pref->useAlternatingRowColors());
|
||||
|
||||
checkShowSplash->setChecked(!pref->isSplashScreenDisabled());
|
||||
|
||||
Reference in New Issue
Block a user