fixes font selection window showing behind if 'window always on top' is

enabled.
This commit is contained in:
ch-ems 2018-06-25 10:25:39 +01:00 committed by fourtf
parent ef2365e81a
commit 7f5b07a9f9

View file

@ -230,6 +230,8 @@ QLayout *AppearancePage::createFontChanger()
QObject::connect(button, &QPushButton::clicked, [=]() { QObject::connect(button, &QPushButton::clicked, [=]() {
QFontDialog dialog(app->fonts->getFont(singletons::FontManager::ChatMedium, 1.)); QFontDialog dialog(app->fonts->getFont(singletons::FontManager::ChatMedium, 1.));
dialog.setWindowFlag(Qt::WindowStaysOnTopHint);
dialog.connect(&dialog, &QFontDialog::fontSelected, [=](const QFont &font) { dialog.connect(&dialog, &QFontDialog::fontSelected, [=](const QFont &font) {
app->fonts->chatFontFamily = font.family().toStdString(); app->fonts->chatFontFamily = font.family().toStdString();
app->fonts->chatFontSize = font.pointSize(); app->fonts->chatFontSize = font.pointSize();