diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2020-03-26 16:24:58 +0300 |
---|---|---|
committer | Hannah von Reth <hannah.vonreth@owncloud.com> | 2020-03-26 16:24:58 +0300 |
commit | 4b28fd60b69087167409c6da453f09477f1cea48 (patch) | |
tree | 890f92e2c2eaff4d8097b321f4907dc3e0ef040d /src/gui/activitywidget.cpp | |
parent | 41182605f0d8760d8d2573dcee2ed1b36be8bafe (diff) | |
parent | 242e4e1d702ca8a74ffeb6e266c5dd8f7088e46c (diff) |
Merge remote-tracking branch 'origin/2.6'
Diffstat (limited to 'src/gui/activitywidget.cpp')
-rw-r--r-- | src/gui/activitywidget.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/activitywidget.cpp b/src/gui/activitywidget.cpp index effbda238..e634c3840 100644 --- a/src/gui/activitywidget.cpp +++ b/src/gui/activitywidget.cpp @@ -73,6 +73,8 @@ ActivityWidget::ActivityWidget(QWidget *parent) // Create a widget container for the notifications. The ui file defines // a scroll area that get a widget with a layout as children QWidget *w = new QWidget; + // workaround for Qt not updating the background on theme changes + w->setAttribute(Qt::WA_OpaquePaintEvent, true); _notificationsLayout = new QVBoxLayout; w->setLayout(_notificationsLayout); _notificationsLayout->setAlignment(Qt::AlignTop); @@ -657,10 +659,7 @@ void ActivitySettings::slotRegularNotificationCheck() bool ActivitySettings::event(QEvent *e) { if (e->type() == QEvent::Show) { - AccountManager *am = AccountManager::instance(); - foreach (AccountStatePtr a, am->accounts()) { - slotRefresh(a.data()); - } + slotRegularNotificationCheck(); } return QWidget::event(e); } |