From a8a613468e77d0a6f6194da62c6ba711adfcea64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 8 Feb 2021 19:53:24 +0100 Subject: [PATCH] Do not show empty popups --- src/GUI/popup.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GUI/popup.cpp b/src/GUI/popup.cpp index 2d2ba827..5ae6a553 100644 --- a/src/GUI/popup.cpp +++ b/src/GUI/popup.cpp @@ -157,6 +157,9 @@ void PopupLabel::deleteAfterTimer() void Popup::show(const QPoint &pos, const QString &text, QWidget *w) { + if (text.isEmpty()) + return; + if (PopupLabel::_instance) { PopupLabel::_instance->stopTimer(); PopupLabel::_instance->setText(text);