Skip to content

Commit 6ba79ca

Browse files
committedFeb 2, 2012
don't set parent of QFontDialog (fixes #4937, but makes it not follow the globally set font size)
1 parent 49429c0 commit 6ba79ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/app/composer/qgscomposerlabelwidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ void QgsComposerLabelWidget::on_mFontButton_clicked()
5555
bool ok;
5656
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
5757
// Native Mac dialog works only for Qt Carbon
58-
QFont newFont = QFontDialog::getFont( &ok, mComposerLabel->font(), this, QString(), QFontDialog::DontUseNativeDialog );
58+
QFont newFont = QFontDialog::getFont( &ok, mComposerLabel->font(), 0, QString(), QFontDialog::DontUseNativeDialog );
5959
#else
60-
QFont newFont = QFontDialog::getFont( &ok, mComposerLabel->font(), this );
60+
QFont newFont = QFontDialog::getFont( &ok, mComposerLabel->font() );
6161
#endif
6262
if ( ok )
6363
{

0 commit comments

Comments
 (0)
Please sign in to comment.