Commit 702030f9 authored by Thomas Hartmann's avatar Thomas Hartmann

Model.Rewriter: crash fix

No TextModifer might be attached.

Change-Id: Ia06a1844ebf10392de1edb8cdb25d70bfa31e14d
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent 613529b3
......@@ -486,12 +486,14 @@ QString RewriterView::textModifierContent() const
void RewriterView::reactivateTextMofifierChangeSignals()
{
textModifier()->reactivateChangeSignals();
if (textModifier())
textModifier()->reactivateChangeSignals();
}
void RewriterView::deactivateTextMofifierChangeSignals()
{
textModifier()->deactivateChangeSignals();
if (textModifier())
textModifier()->deactivateChangeSignals();
}
void RewriterView::applyModificationGroupChanges()
......
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