Preferences: correctly hook up the signals to enable/disable cloud storage

This way the menu state matches the actual verification state again.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-11-10 13:45:13 -08:00
parent 77d7e773b9
commit 111a153295
4 changed files with 11 additions and 5 deletions

View file

@ -27,7 +27,7 @@ PreferencesDialog* PreferencesDialog::instance()
void PreferencesDialog::emitSettingsChanged()
{
emit settingsChanged();
emit settingsChanged();
}
PreferencesDialog::PreferencesDialog()
@ -121,6 +121,7 @@ void PreferencesDialog::refreshPages()
void PreferencesDialog::applyRequested(bool closeIt)
{
Q_FOREACH(AbstractPreferencesWidget *page, pages) {
connect(page, &AbstractPreferencesWidget::settingsChanged, this, &PreferencesDialog::settingsChanged, Qt::UniqueConnection);
page->syncSettings();
}
emit settingsChanged();