mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Settings: Show first account page on startup #4036
This commit is contained in:
parent
76d9b9c0e2
commit
9955b0756a
1 changed files with 3 additions and 9 deletions
|
@ -171,15 +171,9 @@ void SettingsDialog::slotSwitchPage(QAction *action)
|
|||
|
||||
void SettingsDialog::showFirstPage()
|
||||
{
|
||||
Q_FOREACH(QAction *action, _toolBar->actions()) {
|
||||
if (QWidgetAction *wa = qobject_cast<QWidgetAction*>(action)) {
|
||||
if (QToolButton *qtb = qobject_cast<QToolButton*>(wa->defaultWidget())) {
|
||||
if (QAction *a2 = qtb->defaultAction()) {
|
||||
a2->trigger();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
QList<QAction*> actions = _toolBar->actions();
|
||||
if (!actions.empty()) {
|
||||
actions.first()->trigger();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue