summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/preferences/preferences_network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/preferences/preferences_network.cpp')
-rw-r--r--desktop-widgets/preferences/preferences_network.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/desktop-widgets/preferences/preferences_network.cpp b/desktop-widgets/preferences/preferences_network.cpp
index d812f4ab1..cbdeebe8b 100644
--- a/desktop-widgets/preferences/preferences_network.cpp
+++ b/desktop-widgets/preferences/preferences_network.cpp
@@ -96,7 +96,7 @@ void PreferencesNetwork::syncSettings()
report_error(qPrintable(tr("Cloud storage email and password can only consist of letters, numbers, and '.', '-', '_', and '+'.")));
} else {
CloudStorageAuthenticate *cloudAuth = new CloudStorageAuthenticate(this);
- connect(cloudAuth, SIGNAL(finishedAuthenticate()), this, SLOT(cloudPinNeeded()));
+ connect(cloudAuth, &CloudStorageAuthenticate::finishedAuthenticate, this, &PreferencesNetwork::cloudPinNeeded);
cloudAuth->backend(email, password);
}
}
@@ -146,8 +146,7 @@ void PreferencesNetwork::cloudPinNeeded()
} else {
ui->cloudStorageGroupBox->setTitle(tr("Subsurface cloud storage"));
}
- //TODO: Do not call mainWindow here. Verify things on SettingsChanged.
- //MainWindow::instance()->enableDisableCloudActions();
+ emit settingsChanged();
}
void PreferencesNetwork::proxyType_changed(int idx)