Commit bd0790bc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use document()->isEmpty()

parent 6c028949
......@@ -62,7 +62,7 @@ ServerInfoTextBrowser::~ServerInfoTextBrowser()
void ServerInfoTextBrowser::paintEvent(QPaintEvent *event)
{
if (toPlainText().isEmpty()) {
if (document()->isEmpty()) {
QPainter p(viewport());
QFont font = p.font();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment