aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/preferences.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-22 14:04:31 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-22 14:04:31 -0700
commit979eb464b3d5bc4d0b5fb9205f99e452a99aca63 (patch)
tree7c79a808a1778f87d009f38b344eaaf312730c39 /qt-ui/preferences.cpp
parentf150c3b911dc34cc3e068b36139523dc520cc9d4 (diff)
downloadsubsurface-979eb464b3d5bc4d0b5fb9205f99e452a99aca63.tar.gz
Cloud storage: update File menu options once PIN is verified
The code didn't trigger the update routine after PIN verification, only if just email/password were shown. A simple oversight. This is fixed now and so the visibility of cloud open and cloud save options should refelect whether verified credentials are in the preferences or not. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/preferences.cpp')
-rw-r--r--qt-ui/preferences.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp
index 127320566..34960f6db 100644
--- a/qt-ui/preferences.cpp
+++ b/qt-ui/preferences.cpp
@@ -418,6 +418,7 @@ void PreferencesDialog::syncSettings()
report_error(qPrintable(tr("Cloud storage email and password can only consist of letters, numbers, and '.', '-', '_', and '+'.")));
}
CloudStorageAuthenticate *cloudAuth = new CloudStorageAuthenticate(this);
+ connect(cloudAuth, SIGNAL(finishedAuthenticate()), this, SLOT(cloudPinNeeded()));
QNetworkReply *reply = cloudAuth->authenticate(email, password, pin);
}
}