mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
committed by
GitHub
parent
f8536162f2
commit
b76054beba
@@ -1281,9 +1281,11 @@ void OptionsDialog::loadSearchTabOptions()
|
||||
|
||||
m_ui->groupStoreOpenedTabs->setChecked(pref->storeOpenedSearchTabs());
|
||||
m_ui->checkStoreTabsSearchResults->setChecked(pref->storeOpenedSearchTabResults());
|
||||
m_ui->searchHistoryLengthSpinBox->setValue(pref->searchHistoryLength());
|
||||
|
||||
connect(m_ui->groupStoreOpenedTabs, &QGroupBox::toggled, this, &OptionsDialog::enableApplyButton);
|
||||
connect(m_ui->checkStoreTabsSearchResults, &QCheckBox::toggled, this, &OptionsDialog::enableApplyButton);
|
||||
connect(m_ui->searchHistoryLengthSpinBox, qSpinBoxValueChanged, this, &OptionsDialog::enableApplyButton);
|
||||
}
|
||||
|
||||
void OptionsDialog::saveSearchTabOptions() const
|
||||
@@ -1292,6 +1294,7 @@ void OptionsDialog::saveSearchTabOptions() const
|
||||
|
||||
pref->setStoreOpenedSearchTabs(m_ui->groupStoreOpenedTabs->isChecked());
|
||||
pref->setStoreOpenedSearchTabResults(m_ui->checkStoreTabsSearchResults->isChecked());
|
||||
pref->setSearchHistoryLength(m_ui->searchHistoryLengthSpinBox->value());
|
||||
}
|
||||
|
||||
#ifndef DISABLE_WEBUI
|
||||
|
||||
Reference in New Issue
Block a user