Remove empty action in the settings toolbar

This was causing an unwanted line in the middle of the bar.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
Kevin Ottens 2020-12-10 11:12:11 +01:00
parent d63097475c
commit f45e84f2ee
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2
2 changed files with 1 additions and 5 deletions

View file

@ -112,9 +112,6 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent)
_actionGroup->setExclusive(true);
connect(_actionGroup, &QActionGroup::triggered, this, &SettingsDialog::slotSwitchPage);
_actionBefore = new QAction(this);
_toolBar->addAction(_actionBefore);
// Adds space between users + activities and general + network actions
auto *spacer = new QWidget();
spacer->setMinimumWidth(10);
@ -252,7 +249,7 @@ void SettingsDialog::accountAdded(AccountState *s)
accountAction->setIconText(shortDisplayNameForSettings(s->account().data(), height * buttonSizeRatio));
}
_toolBar->insertAction(_actionBefore, accountAction);
_toolBar->insertAction(_toolBar->actions().at(0), accountAction);
auto accountSettings = new AccountSettings(s, this);
QString objectName = QLatin1String("accountSettings_");
objectName += s->account()->displayName();

View file

@ -82,7 +82,6 @@ private:
Ui::SettingsDialog *const _ui;
QActionGroup *_actionGroup;
QAction *_actionBefore;
// Maps the actions from the action group to the corresponding widgets
QHash<QAction *, QWidget *> _actionGroupWidgets;