Skip to content
Permalink
Browse files
Fix signal order
  • Loading branch information
nyalldawson committed Apr 21, 2021
1 parent dc80a83 commit d878325474a5864cff21db054e4a8ff27ec4b8d4
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/gui/qgsrichtexteditor.cpp
@@ -175,7 +175,6 @@ QgsRichTextEditor::QgsRichTextEditor( QWidget *parent )
for ( int size : sizes )
mFontSizeCombo->addItem( QString::number( size ), size );

connect( mFontSizeCombo, &QComboBox::currentTextChanged, this, &QgsRichTextEditor::textSize );
mFontSizeCombo->setCurrentIndex( mFontSizeCombo->findData( QApplication::font().pointSize() ) );

// text foreground color
@@ -208,6 +207,8 @@ QgsRichTextEditor::QgsRichTextEditor( QWidget *parent )
// images
connect( mActionInsertImage, &QAction::triggered, this, &QgsRichTextEditor::insertImage );

connect( mFontSizeCombo, &QComboBox::currentTextChanged, this, &QgsRichTextEditor::textSize );

fontChanged( mTextEdit->font() );
}

0 comments on commit d878325

Please sign in to comment.