diff --git a/src/gui/activitywidget.cpp b/src/gui/activitywidget.cpp
index 63f073218..e3e417804 100644
--- a/src/gui/activitywidget.cpp
+++ b/src/gui/activitywidget.cpp
@@ -91,7 +91,6 @@ ActivityWidget::ActivityWidget(AccountState *accountState, QWidget *parent)
connect(delegate, &ActivityItemDelegate::primaryButtonClickedOnItemView, this, &ActivityWidget::slotPrimaryButtonClickedOnListView);
connect(delegate, &ActivityItemDelegate::secondaryButtonClickedOnItemView, this, &ActivityWidget::slotSecondaryButtonClickedOnListView);
-
connect(_ui->_activityList, &QListView::activated, this, &ActivityWidget::slotOpenFile);
connect(&_removeTimer, &QTimer::timeout, this, &ActivityWidget::slotCheckToCleanWidgets);
@@ -320,7 +319,6 @@ void ActivityWidget::storeActivityList(QTextStream &ts)
ActivityList activities = _model->activityList();
foreach (Activity activity, activities) {
- QString message = activity._message.isEmpty()? "Message!" : activity._message;
ts << right
// account name
<< qSetFieldWidth(activity._accName.length())
diff --git a/src/gui/activitywidget.ui b/src/gui/activitywidget.ui
index 01c6e99ab..132a6a3bb 100644
--- a/src/gui/activitywidget.ui
+++ b/src/gui/activitywidget.ui
@@ -41,6 +41,27 @@
0
+
+ QFrame::NoFrame
+
+
+ QFrame::Plain
+
+
+ 0
+
+
+ QListView::Adjust
+
+
+ QListView::ListMode
+
+
+ 0
+
+
+ true
+
@@ -51,4 +72,4 @@
-
+
\ No newline at end of file
diff --git a/src/gui/settingsdialog.cpp b/src/gui/settingsdialog.cpp
index 21be95e25..63db53292 100644
--- a/src/gui/settingsdialog.cpp
+++ b/src/gui/settingsdialog.cpp
@@ -43,8 +43,8 @@
namespace {
const char TOOLBAR_CSS[] =
- "QToolBar { background: %1; margin: 0; padding: 0; border: none; border-bottom: 1px solid %2; spacing: 0; } "
- "QToolBar QToolButton { background: %1; border: none; border-bottom: 1px solid %2; margin: 0; padding: 5px; } "
+ "QToolBar { background: %1; margin: 0; padding: 0; border: none; border-bottom: 0 solid %2; spacing: 0; } "
+ "QToolBar QToolButton { background: %1; border: none; border-bottom: 0 solid %2; margin: 0; padding: 5px; } "
"QToolBar QToolBarExtension { padding:0; } "
"QToolBar QToolButton:checked { background: %3; color: %4; }";
@@ -90,7 +90,6 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent)
_actionGroup = new QActionGroup(this);
_actionGroup->setExclusive(true);
-
connect(_actionGroup, &QActionGroup::triggered, this, &SettingsDialog::slotSwitchPage);
foreach(auto ai, AccountManager::instance()->accounts()) {
@@ -111,7 +110,6 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent)
_toolBar->addAction(generalAction);
GeneralSettings *generalSettings = new GeneralSettings;
_ui->stack->addWidget(generalSettings);
- _actionBefore = generalAction;
QAction *networkAction = createColorAwareAction(QLatin1String(":/client/resources/network.png"), tr("Network"));
_actionGroup->addAction(networkAction);
@@ -257,10 +255,6 @@ void SettingsDialog::accountAdded(AccountState *s)
connect(s, &AccountState::isConnectedChanged, this, &SettingsDialog::slotRefreshActivityAccountStateSender);
activityAdded(s);
- QWidget* spacer = new QWidget();
- spacer->setMinimumWidth(30);
- spacer->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
- _toolBar->insertWidget(_actionBefore, spacer);
slotRefreshActivity(s);
}
@@ -313,16 +307,6 @@ void SettingsDialog::accountRemoved(AccountState *s)
}
}
-// _ui->stack->insertWidget(0, accountSettings);
-// _actionGroup->addAction(accountAction);
-// _actionGroupWidgets.insert(accountAction, accountSettings);
-// _actionForAccount.insert(s->account().data(), accountAction);
-
-// _toolBar->insertSeparator(_actionBefore);
-// _toolBar->insertAction(_actionBefore, action);
-// _actionGroup->addAction(action);
-// _actionGroupWidgets.insert(action, _activitySettings[s]);
-
if (_actionForAccount.contains(s->account().data())) {
_actionForAccount.remove(s->account().data());
}
@@ -336,6 +320,7 @@ void SettingsDialog::accountRemoved(AccountState *s)
_actionGroupWidgets.remove(action);
_toolBar->removeAction(action);
}
+ _toolBar->widgetForAction(_actionBefore)->hide();
_activitySettings.remove(s);
}