ClearCase: Adapt to removed signal

Change-Id: I6296f23af08890cc82880715db7c84f51d9cd6ce
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Orgad Shaneh
2016-05-29 00:14:20 +03:00
committed by Orgad Shaneh
parent f59759f9da
commit 44b0ca4754

View File

@@ -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;