From 2e02a2df1e10ca1d7de7fa6f6d90b28329275696 Mon Sep 17 00:00:00 2001 From: Lionel Chauvin Date: Sun, 9 Aug 2009 09:07:08 +0200 Subject: flashy popup: delete after have painted the newer --- src/mainwindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 7a45d945..15c347c9 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -908,8 +908,7 @@ void MainWindow::notifyMessage(const QString &msg, Rekonq::Notify status) return; } - if(m_popup) - delete m_popup; + KPassivePopup *popup_sav = m_popup; m_popup = new KPassivePopup(this); m_popup->setAutoDelete(true); @@ -953,6 +952,10 @@ void MainWindow::notifyMessage(const QString &msg, Rekonq::Notify status) QPoint p(x,y); m_popup->show(p); + + if(popup_sav) + delete popup_sav; + } -- cgit v1.2.1