mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-29 18:04:24 +02:00
Do not show empty popups
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user