mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-08 14:22:31 -04:00
Fix Chat Font setting saving.
And don't use native dialog.
This commit is contained in:
parent
86118d9de6
commit
7acefda943
3 changed files with 6 additions and 4 deletions
|
@ -416,7 +416,7 @@ ChatPage::load()
|
|||
void ChatPage::on_pushButtonChangeChatFont_clicked()
|
||||
{
|
||||
bool ok;
|
||||
QFont font = QFontDialog::getFont(&ok, fontTempChat, this);
|
||||
QFont font = QFontDialog::getFont(&ok, fontTempChat, this, tr("Choose your default font for Chat."),QFontDialog::DontUseNativeDialog);
|
||||
if (ok) {
|
||||
fontTempChat = font;
|
||||
// using fontTempChat.rawname() does not always work!
|
||||
|
@ -424,6 +424,7 @@ void ChatPage::on_pushButtonChangeChatFont_clicked()
|
|||
QStringList fontname = fontTempChat.toString().split(",");
|
||||
ui.labelChatFontPreview->setText(fontname[0]);
|
||||
ui.labelChatFontPreview->setFont(fontTempChat);
|
||||
updateChatParams();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue