Commit b18c0f6a authored by Nikita Baryshnikov's avatar Nikita Baryshnikov Committed by hjk
Browse files

DebbugerMainWindow fix warnings



QObject::disconnect: No such signal
Debugger::DebuggerRunConfigurationAspect::requestRunActionsUpdate() in /
src/plugins/debugger/debuggermainwindow.cpp:205
and QObject::connect at line 212

Also connections are ported to Qt5 style

Change-Id: I9ac1457209b0b1e32a1f7032135a3a12099b38a2
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent ec6c13d0
......@@ -201,16 +201,15 @@ void DebuggerMainWindowPrivate::updateUiForTarget(Target *target)
void DebuggerMainWindowPrivate::updateUiForRunConfiguration(RunConfiguration *rc)
{
if (m_previousRunConfiguration)
disconnect(m_previousRunConfiguration->extraAspect<Debugger::DebuggerRunConfigurationAspect>(),
SIGNAL(requestRunActionsUpdate()),
this, SLOT(updateUiForCurrentRunConfiguration()));
disconnect(m_previousRunConfiguration, &RunConfiguration::requestRunActionsUpdate,
this, &DebuggerMainWindowPrivate::updateUiForCurrentRunConfiguration);
m_previousRunConfiguration = rc;
updateUiForCurrentRunConfiguration();
if (!rc)
return;
connect(m_previousRunConfiguration->extraAspect<Debugger::DebuggerRunConfigurationAspect>(),
SIGNAL(requestRunActionsUpdate()),
SLOT(updateUiForCurrentRunConfiguration()));
connect(m_previousRunConfiguration, &RunConfiguration::requestRunActionsUpdate,
this, &DebuggerMainWindowPrivate::updateUiForCurrentRunConfiguration);
}
void DebuggerMainWindowPrivate::updateUiForCurrentRunConfiguration()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment