OSDN Git Service

update the QFontComboBox model from its constructor
authorIvailo Monev <xakepa10@gmail.com>
Mon, 13 Jun 2022 19:53:46 +0000 (22:53 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 13 Jun 2022 19:53:46 +0000 (22:53 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/widgets/qfontcombobox.cpp

index fdcd876..7d959cb 100644 (file)
@@ -243,6 +243,7 @@ QFontComboBox::QFontComboBox(QWidget *parent)
     connect(this, SIGNAL(currentIndexChanged(QString)),
             this, SLOT(_q_currentChanged(QString)));
 
+    d->_q_updateModel();
     connect(qApp, SIGNAL(fontDatabaseChanged()),
             this, SLOT(_q_updateModel()));
 }