aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-08-01 14:35:57 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-09-04 07:38:30 -0700
commit7e2803d6dd65016bfd925345adf3abdfbbbe6056 (patch)
tree34dd6d332a58e8c5b6ede0fe7c7de95a4cc45148
parent190d80e509e24b242024cda28d7caf546250fab1 (diff)
downloadsubsurface-7e2803d6dd65016bfd925345adf3abdfbbbe6056.tar.gz
mobile: remove superfluous state INCOMPLETE
And here, the removal of a second superfluous state from QMLManager. This is true no-brainer. While this state was set once troughout the entire mobile code, it was never tested for this state. Testing shows that it is safe to change to the UNKNOWN state. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
-rw-r--r--mobile-widgets/qmlmanager.cpp2
-rw-r--r--mobile-widgets/qmlmanager.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 8f8f06163..62eae8e8c 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -245,7 +245,7 @@ void QMLManager::finishSetup()
appendTextToLog(QString("working in no-cloud mode, finished loading %1 dives from %2").arg(dive_table.nr).arg(existing_filename));
}
} else {
- setCredentialStatus(INCOMPLETE);
+ setCredentialStatus(UNKNOWN);
appendTextToLog(tr("no cloud credentials"));
setStartPageText(RED_FONT + tr("Please enter valid cloud credentials.") + END_FONT);
}
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h
index d1595cd5f..fc468baf4 100644
--- a/mobile-widgets/qmlmanager.h
+++ b/mobile-widgets/qmlmanager.h
@@ -49,7 +49,6 @@ public:
~QMLManager();
enum credentialStatus_t {
- INCOMPLETE,
UNKNOWN,
INVALID,
VALID,