mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 06:45:27 +00:00
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>
This commit is contained in:
parent
f150c3b911
commit
979eb464b3
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue