Invalidate the remembered git SHA when changing credentials

Otherwise, when switching back and forth between two logins, during the
second switch the dive list is not loaded as the code checks against the
remembered git SHA before rewriting the dive list.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-02-10 21:24:10 -08:00
parent 06628e03c5
commit 5e3b2741ac

View file

@ -167,6 +167,7 @@ void QMLManager::saveCloudCredentials()
QString url;
getCloudURL(url);
manager()->clearAccessCache(); // remove any chached credentials
clear_git_id(); // invalidate our remembered GIT SHA
openLocalThenRemote(url);
}
}