Commit 465416bd authored by Boudewijn Rempt's avatar Boudewijn Rempt

Don't leak a QFontComboBox

Because if we do, it won't be deleted before Qt removes all fonts
on destroying QApplication, and then QFontCombBox will try to get
an active window.

parent 2c57fdf0
......@@ -79,7 +79,7 @@ KisFontFamilyComboBox::KisFontFamilyComboBox(QWidget *parent)
<< "msam10" << "msbm10" << "rsfs10"
<< "stmary10" << "wasy10" << "wasyb10";
QFontComboBox *temp = new QFontComboBox();
QFontComboBox *temp = new QFontComboBox(this);
m_fontSeparator = new PinnedFontsSeparator(temp->itemDelegate(), this);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment