Merge pull request #667 from nextcloud/upstream/pr/6592

SettingsDialog: Show the page for the newly created account
This commit is contained in:
Roeland Jago Douma 2018-10-25 08:23:51 +02:00 committed by GitHub
commit 8acc5573ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -244,6 +244,7 @@ void SettingsDialog::accountAdded(AccountState *s)
_actionGroup->addAction(accountAction);
_actionGroupWidgets.insert(accountAction, accountSettings);
_actionForAccount.insert(s->account().data(), accountAction);
accountAction->trigger();
connect(accountSettings, &AccountSettings::folderChanged, _gui, &ownCloudGui::slotFoldersChanged);
connect(accountSettings, &AccountSettings::openFolderAlias,

View File

@ -167,6 +167,7 @@ void SettingsDialogMac::accountAdded(AccountState *s)
_activitySettings[s]->setNotificationRefreshInterval(cfg.notificationRefreshInterval());
slotRefreshActivity(s);
setCurrentPanelIndex(0);
}
void SettingsDialogMac::accountRemoved(AccountState *s)