mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cloud storage: show in preferences if cloud account was verified
This should make it easier to figure out what's happening. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b5eb66545b
commit
4b120d1bf5
3 changed files with 6 additions and 3 deletions
|
|
@ -978,15 +978,14 @@ void CloudStorageAuthenticate::uploadFinished()
|
|||
qDebug() << "Completed connection with cloud storage backend, response" << cloudAuthReply;
|
||||
if (cloudAuthReply == "[VERIFIED]" || cloudAuthReply == "[OK]") {
|
||||
prefs.cloud_verification_status = CS_VERIFIED;
|
||||
emit finishedAuthenticate();
|
||||
} else if (cloudAuthReply == "[VERIFY]") {
|
||||
prefs.cloud_verification_status = CS_NEED_TO_VERIFY;
|
||||
emit finishedAuthenticate();
|
||||
} else {
|
||||
prefs.cloud_verification_status = CS_INCORRECT_USER_PASSWD;
|
||||
report_error("%s", qPrintable(cloudAuthReply));
|
||||
MainWindow::instance()->getNotificationWidget()->showNotification(get_error_string(), KMessageWidget::Error);
|
||||
}
|
||||
emit finishedAuthenticate();
|
||||
}
|
||||
|
||||
void CloudStorageAuthenticate::uploadError(QNetworkReply::NetworkError error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue