Skip to content

Commit

Permalink
Qt bug workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
LFriede committed Apr 12, 2020
1 parent 9120b01 commit 447c91f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions updateform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 0 additions & 6 deletions updateform.ui
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,6 @@
</item>
<item>
<widget class="QPlainTextEdit" name="pteUpdaterConsole">
<property name="font">
<font>
<family>Consolas</family>
<pointsize>10</pointsize>
</font>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
Expand Down

0 comments on commit 447c91f

Please sign in to comment.