Commit 21cf52ae authored by Robert Loehning's avatar Robert Loehning Committed by Jarek Kobus
Browse files

Avoid NULL-pointer deref



Change-Id: I49115befb18c5342b96c5561882dcdfa45772f22
Reviewed-by: default avatarJarek Kobus <jaroslaw.kobus@nokia.com>
parent 12a99d47
......@@ -286,9 +286,10 @@ void CodeStyleSelectorWidget::slotCopyClicked()
if (!ok)
return;
ICodeStylePreferences *copy = codeStylePool->cloneCodeStyle(currentPreferences);
if (copy) {
copy->setDisplayName(newName);
if (copy)
m_codeStyle->setCurrentDelegate(copy);
}
}
void CodeStyleSelectorWidget::slotEditClicked()
......
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