Commit d03ce488 authored by Sven Brauch's avatar Sven Brauch
Browse files

adapt signature assistant: unlock duchain lock before executing action

parent 16bd7996
......@@ -75,6 +75,7 @@ QString AdaptSignatureAction::toolTip() const
void AdaptSignatureAction::execute()
{
Q_ASSERT(!DUChain::lock()->currentThreadHasReadLock() && !DUChain::lock()->currentThreadHasWriteLock());
DUChainReadLocker lock;
IndexedString url = m_otherSideTopContext->url();
lock.unlock();
......@@ -110,6 +111,7 @@ void AdaptSignatureAction::execute()
}
DocumentChange changeParameters(functionContext->url(), parameterRange, QString(), newText);
lock.unlock();
changeParameters.m_ignoreOldText = true;
changes.addChange(changeParameters);
changes.setReplacementPolicy(DocumentChangeSet::WarnOnFailedChange);
......
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