From 0fd1f748fd18f87efdafabfa21e1e4385ea71050 Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Sat, 7 Jan 2023 09:57:14 +0100 Subject: [PATCH] Better initialization of the decoded text font. --- widgets/mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 977946d03..2f9d68a44 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -663,9 +663,9 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, connect (ui->decodedTextBrowser2, &DisplayText::erased, this, &MainWindow::rx_frequency_activity_cleared); // initialize decoded text font and hook up font change signals - // defer initialization until after construction otherwise menu - // fonts do not get set - QTimer::singleShot (0, this, SLOT (initialize_fonts ())); + // defer initialization until after construction otherwise menu fonts do not get set + // with 50 ms delay we are on the save side + QTimer::singleShot (50, this, SLOT (initialize_fonts ())); connect (&m_config, &Configuration::text_font_changed, [this] (QFont const& font) { set_application_font (font); });