From 22a844395be2f4ef02f83b85520f97b44ea78ae5 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Tue, 30 Jan 2018 14:51:08 +0200 Subject: [PATCH] update layoutsView when runningActivities changed --- app/latteconfigdialog.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/latteconfigdialog.cpp b/app/latteconfigdialog.cpp index 644d93f38..b07b37cec 100644 --- a/app/latteconfigdialog.cpp +++ b/app/latteconfigdialog.cpp @@ -143,6 +143,13 @@ LatteConfigDialog::LatteConfigDialog(QWidget *parent, DockCorona *corona) connect(aboutAction, &QAction::triggered, m_corona, &DockCorona::aboutApplication); + //! update all layouts view when runningActivities changed. This way we update immediately + //! the running Activities in Activities checkboxes which are shown as bold + connect(m_corona->activitiesConsumer(), &KActivities::Consumer::runningActivitiesChanged, + this, [&]() { + ui->layoutsView->update(); + }); + blockDeleteOnActivityStopped(); }