summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-06-21 12:17:36 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-06-21 12:17:36 +0200
commit554b30dd0101524d846df6c76a07db011d4d0c00 (patch)
treec212bbf137c4b345c9d1d523878cdb0331bf6901 /src/mainwindow.cpp
parentComments and Fixes (diff)
downloadrekonq-554b30dd0101524d846df6c76a07db011d4d0c00.tar.xz
Deleting popup in empty msg
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index ccd40e3c..811d607b 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -161,7 +161,7 @@ void MainWindow::postLaunch()
connect(m_view, SIGNAL(loadProgress(int)), this, SLOT(slotLoadProgress(int)));
connect(m_view, SIGNAL(printRequested(QWebFrame *)), this, SLOT(printRequested(QWebFrame *)));
- // "status bar" messages
+ // "status bar" messages (new notifyMessage system)
connect(m_view, SIGNAL(showStatusBarMessage(const QString&)), this, SLOT(notifyMessage(const QString&)));
connect(m_view, SIGNAL(linkHovered(const QString&)), this, SLOT(notifyMessage(const QString&)));
@@ -853,7 +853,10 @@ QAction *MainWindow::actionByName(const QString name)
void MainWindow::notifyMessage(const QString &msg, Rekonq::Notify status)
{
if(msg.isEmpty())
+ {
+ delete m_popup;
return;
+ }
if(m_popup)
delete m_popup;