fix wording for access token change signal

This commit is contained in:
Stephen Birarda 2014-02-25 16:12:25 -08:00
parent 2496c6252f
commit d5fc1caaaf
3 changed files with 4 additions and 4 deletions

View file

@ -94,7 +94,7 @@ Menu::Menu() :
toggleLoginMenuItem();
// connect to the appropriate slots of the AccountManager so that we can change the Login/Logout menu item
connect(&accountManager, &AccountManager::foundOrRequestedAccessToken, this, &Menu::toggleLoginMenuItem);
connect(&accountManager, &AccountManager::accessTokenChanged, this, &Menu::toggleLoginMenuItem);
connect(&accountManager, &AccountManager::logoutComplete, this, &Menu::toggleLoginMenuItem);
addDisabledActionAndSeparator(fileMenu, "Scripts");

View file

@ -89,7 +89,7 @@ void AccountManager::setAuthURL(const QUrl& authURL) {
_accountInfo = settings.value(key).value<DataServerAccountInfo>();
qDebug() << "Found a data-server access token for" << qPrintable(keyURL.toString());
emit foundOrRequestedAccessToken();
emit accessTokenChanged();
}
}
@ -275,7 +275,7 @@ void AccountManager::requestFinished() {
emit usernameChanged(_accountInfo.getUsername());
// we have found or requested an access token
emit foundOrRequestedAccessToken();
emit accessTokenChanged();
// store this access token into the local settings
QSettings localSettings;

View file

@ -61,7 +61,7 @@ signals:
void authRequired();
void authEndpointChanged();
void usernameChanged(const QString& username);
void foundOrRequestedAccessToken();
void accessTokenChanged();
void loginComplete(const QUrl& authURL);
void logoutComplete();
private slots: