Adds space bewteen different accounts and activity.

Signed-off-by: Camila San <hello@camila.codes>
This commit is contained in:
Camila San 2018-03-27 18:05:19 +02:00 committed by Roeland Jago Douma
parent 1b1468a9c6
commit 22a6303c9d
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -111,6 +111,14 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent)
_actionGroupWidgets.insert(action, _activitySettings[ai]);
connect(action, &QAction::triggered, this, &SettingsDialog::showActivityPage);
// Adds space
if(AccountManager::instance()->accounts().last() != ai){
QWidget* spacer = new QWidget();
spacer->setMinimumWidth(30);
spacer->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
_toolBar->addWidget(spacer);
}
slotRefreshActivity(ai.data());
}