From 6b542a5fb6a8655469cdf972dc049fa5b905de61 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 3 May 2010 11:55:24 +0000 Subject: fixed possible segmentation fault git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1706 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/notifier/popupwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/General/notifier/popupwidget.cpp') diff --git a/src/plugins/General/notifier/popupwidget.cpp b/src/plugins/General/notifier/popupwidget.cpp index 63049f3c5..2cfca4690 100644 --- a/src/plugins/General/notifier/popupwidget.cpp +++ b/src/plugins/General/notifier/popupwidget.cpp @@ -69,7 +69,7 @@ PopupWidget::PopupWidget(QWidget *parent) m_timer = new QTimer(this); m_timer->setInterval(delay); m_timer->setSingleShot (true); - connect(m_timer, SIGNAL(timeout ()), SLOT(deleteLater())); + connect(m_timer, SIGNAL(timeout ()), SLOT(hide())); } PopupWidget::~PopupWidget() @@ -77,7 +77,7 @@ PopupWidget::~PopupWidget() void PopupWidget::mousePressEvent (QMouseEvent *) { - deleteLater(); + hide(); } void PopupWidget::showMetaData() -- cgit v1.2.3-13-gbd6f