From 9bdcd07423395b5a6a007b43d55813ef1b41bbcf Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 25 Aug 2016 17:56:38 +0300 Subject: [PATCH] 0053224: Preferences of python viewer --- src/Qtx/QtxFontEdit.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Qtx/QtxFontEdit.cxx b/src/Qtx/QtxFontEdit.cxx index f0be9b552..29af733c5 100644 --- a/src/Qtx/QtxFontEdit.cxx +++ b/src/Qtx/QtxFontEdit.cxx @@ -134,7 +134,11 @@ QFont QtxFontEdit::currentFont() const */ void QtxFontEdit::setCurrentFont( const QFont& fnt ) { - myFamily->blockSignals( true ); + // VSR 25/08/2016: IPAL53224 + // blocking signals of QFontComboBox breaks its internal business logic + // that prevents correct retrieving of available sizes for the font in case + // when some non-existent font is replaced by its closest analogue + //myFamily->blockSignals( true ); myCustomFams->blockSignals( true ); mySize->blockSignals( true ); myB->blockSignals( true ); @@ -148,7 +152,7 @@ void QtxFontEdit::setCurrentFont( const QFont& fnt ) ( fnt.underline() ? Underline : 0 ) | ( fnt.overline() ? Shadow : 0 ) ); - myFamily->blockSignals( false ); + //myFamily->blockSignals( false ); myCustomFams->blockSignals( false ); mySize->blockSignals( false ); myB->blockSignals( false ); -- 2.39.2