mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile-widget: simplify saveCredentials() in qmlmanager
cloudPin is only set to "" and NULL, therefore and "if" checking if cloudPin is not empty will never have affect. Remove else part. Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3155b03917
commit
f1a48d7f79
1 changed files with 0 additions and 4 deletions
|
@ -565,10 +565,6 @@ void QMLManager::saveCloudCredentials(const QString &newEmail, const QString &ne
|
||||||
currentGitLocalOnly = git_local_only;
|
currentGitLocalOnly = git_local_only;
|
||||||
git_local_only = false;
|
git_local_only = false;
|
||||||
openLocalThenRemote(url);
|
openLocalThenRemote(url);
|
||||||
} else if (prefs.cloud_verification_status == qPrefCloudStorage::CS_NEED_TO_VERIFY &&
|
|
||||||
!QMLPrefs::instance()->cloudPin().isEmpty()) {
|
|
||||||
// the user entered a PIN?
|
|
||||||
tryRetrieveDataFromBackend();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue