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.

BUG:414718
parent 2c57fdf0
...@@ -79,7 +79,7 @@ KisFontFamilyComboBox::KisFontFamilyComboBox(QWidget *parent) ...@@ -79,7 +79,7 @@ KisFontFamilyComboBox::KisFontFamilyComboBox(QWidget *parent)
<< "msam10" << "msbm10" << "rsfs10" << "msam10" << "msbm10" << "rsfs10"
<< "stmary10" << "wasy10" << "wasyb10"; << "stmary10" << "wasy10" << "wasyb10";
refillComboBox(); refillComboBox();
QFontComboBox *temp = new QFontComboBox(); QFontComboBox *temp = new QFontComboBox(this);
m_fontSeparator = new PinnedFontsSeparator(temp->itemDelegate(), this); m_fontSeparator = new PinnedFontsSeparator(temp->itemDelegate(), this);
temp->setEnabled(true); temp->setEnabled(true);
temp->hide(); temp->hide();
......
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