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>
This commit is contained in:
Jan Mulder 2017-08-01 14:35:57 +02:00 committed by Dirk Hohndel
parent 190d80e509
commit 7e2803d6dd
2 changed files with 1 additions and 2 deletions

View file

@ -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)); appendTextToLog(QString("working in no-cloud mode, finished loading %1 dives from %2").arg(dive_table.nr).arg(existing_filename));
} }
} else { } else {
setCredentialStatus(INCOMPLETE); setCredentialStatus(UNKNOWN);
appendTextToLog(tr("no cloud credentials")); appendTextToLog(tr("no cloud credentials"));
setStartPageText(RED_FONT + tr("Please enter valid cloud credentials.") + END_FONT); setStartPageText(RED_FONT + tr("Please enter valid cloud credentials.") + END_FONT);
} }

View file

@ -49,7 +49,6 @@ public:
~QMLManager(); ~QMLManager();
enum credentialStatus_t { enum credentialStatus_t {
INCOMPLETE,
UNKNOWN, UNKNOWN,
INVALID, INVALID,
VALID, VALID,