Skip to content
Browse files
Additional fix for #5862 fix.
Editing text for composer label in text edit widget caused label to emit itemChanged(), which caused cyclical update of gui elements and the cursor to jump to end of text edit's text.
Tested update of label via Python and #5862 fix still works, i.e. text edit updates as well.
  • Loading branch information
dakcarto committed Jul 5, 2012
1 parent aa8cccb commit 5f9f76ea82dc2f4366c90498ec2605b6e59e40c5
Showing 1 changed file with 2 additions and 0 deletions.
@@ -42,8 +42,10 @@ void QgsComposerLabelWidget::on_mTextEdit_textChanged()
if ( mComposerLabel )
mComposerLabel->beginCommand( tr( "Label text changed" ), QgsComposerMergeCommand::ComposerLabelSetText );
mComposerLabel->blockSignals( true );
mComposerLabel->setText( mTextEdit->toPlainText() );
mComposerLabel->blockSignals( false );

0 comments on commit 5f9f76e

Please sign in to comment.