1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 14:53:21 +02:00

Do not show empty popups

This commit is contained in:
Martin Tůma 2021-02-08 19:53:24 +01:00
parent ed6a81c9e7
commit a8a613468e

View File

@ -157,6 +157,9 @@ void PopupLabel::deleteAfterTimer()
void Popup::show(const QPoint &pos, const QString &text, QWidget *w) void Popup::show(const QPoint &pos, const QString &text, QWidget *w)
{ {
if (text.isEmpty())
return;
if (PopupLabel::_instance) { if (PopupLabel::_instance) {
PopupLabel::_instance->stopTimer(); PopupLabel::_instance->stopTimer();
PopupLabel::_instance->setText(text); PopupLabel::_instance->setText(text);