From 447c91f3c7668401ba7d17f90b4c5f694346e13f Mon Sep 17 00:00:00 2001 From: LFriede Date: Sun, 12 Apr 2020 18:15:16 +0200 Subject: [PATCH] Qt bug workaround --- updateform.cpp | 6 ++++++ updateform.ui | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/updateform.cpp b/updateform.cpp index 78aa0d2..48f7a3e 100644 --- a/updateform.cpp +++ b/updateform.cpp @@ -56,6 +56,12 @@ UpdateForm::UpdateForm(QWidget *parent) : p.setColor(QPalette::Text, QColor(0xCC, 0xCC, 0xCC)); ui->pteUpdaterConsole->setPalette(p); + // Setting the font(family) in the designer makes us crash after plugin unload O_o + QFont font; + font.setFamily("Consolas"); + font.setPointSize(10); + ui->pteUpdaterConsole->setFont(font); + foundCommitDate = false; manager = new QNetworkAccessManager(this); diff --git a/updateform.ui b/updateform.ui index 056e11d..dbdfea2 100644 --- a/updateform.ui +++ b/updateform.ui @@ -91,12 +91,6 @@ - - - Consolas - 10 - - true