Fix Chat Font setting saving.

And don't use native dialog.
This commit is contained in:
Phenom 2017-05-19 18:40:17 +02:00
parent 86118d9de6
commit 7acefda943
3 changed files with 6 additions and 4 deletions

View file

@ -1440,7 +1440,8 @@ void ChatWidget::colorChanged()
void ChatWidget::chooseFont()
{
bool ok;
QFont font = QFontDialog::getFont(&ok, currentFont, this);
//Use NULL as parent as with this QFontDialog don't take care of title nether options.
QFont font = QFontDialog::getFont(&ok, currentFont, NULL, tr("Choose your font."),QFontDialog::DontUseNativeDialog);
if (ok) {
currentFont = font;
setFont();