From 979eb464b3d5bc4d0b5fb9205f99e452a99aca63 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 22 Jun 2015 14:04:31 -0700 Subject: 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 --- qt-ui/preferences.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/preferences.cpp') 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); } } -- cgit v1.2.3-70-g09d2