summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-09 11:27:23 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-09 11:27:23 +0200
commit0f513094a7c0368139ad3c2682805c22fd3bcb02 (patch)
tree25af136ea97a55123a4f042c0367f1da95cd0bdc
parentprogress bar at 100% is better drawn (fix division issue with int value) (diff)
parentflashy popup: delete after have painted the newer (diff)
downloadrekonq-0f513094a7c0368139ad3c2682805c22fd3bcb02.tar.xz
Merge commit 'megabigbug/popup'
-rw-r--r--src/mainwindow.cpp7
1 files 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;
+
}