mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Do not show empty popups
This commit is contained in:
parent
ed6a81c9e7
commit
a8a613468e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user