From 44b0ca4754f0b64f6f25e3b25d53216035a1786c Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 29 May 2016 00:14:20 +0300 Subject: [PATCH] ClearCase: Adapt to removed signal Change-Id: I6296f23af08890cc82880715db7c84f51d9cd6ce Reviewed-by: Tobias Hunger --- src/plugins/clearcase/clearcaseplugin.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/clearcase/clearcaseplugin.cpp b/src/plugins/clearcase/clearcaseplugin.cpp index 1b5cc28ad4f..8071365aa8c 100644 --- a/src/plugins/clearcase/clearcaseplugin.cpp +++ b/src/plugins/clearcase/clearcaseplugin.cpp @@ -2016,7 +2016,11 @@ void ClearCasePlugin::projectChanged(Project *project) m_topLevel = topLevel; if (topLevel.isEmpty()) return; - connect(ICore::mainWindow(), SIGNAL(windowActivated()), this, SLOT(syncSlot())); + connect(qApp, &QApplication::applicationStateChanged, + this, [this](Qt::ApplicationState state) { + if (state == Qt::ApplicationActive) + syncSlot(); + }); updateStreamAndView(); if (m_viewData.name.isEmpty()) return;