Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all
Unified · Split
| @@ -278,6 +278,9 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 277 unmodified lines | ||
| 278 | 278 | |
| 279 | 279 | connect(&accountManager, &AccountManager::authRequired, Menu::getInstance(), &Menu::loginForCurrentDomain); |
| 280 | 280 | connect(&accountManager, &AccountManager::usernameChanged, this, &Application::updateWindowTitle); |
| 281 | + | |
| 282 | + // once we have a profile in account manager make sure we generate a new keypair | |
| 283 | + connect(&accountManager, &AccountManager::profileChanged, &accountManager, &AccountManager::generateNewKeypair); | |
| 281 | 284 | |
| 282 | 285 | // set the account manager's root URL and trigger a login request if we don't have the access token |
| 283 | 286 | accountManager.setAuthURL(DEFAULT_NODE_AUTH_URL); |