From d76f6bdb544f6ba4fb6b92fbeb36bfe25450eb1f Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 27 Nov 2011 12:00:28 +0100 Subject: Download Management ++ - let users choose a "default" download dir - Moved download code to download manager - follow dfaure's suggestions about overwrite handling (kdelibs commit 88e3b372fb9c539) - download label notification (for 3 seconds): this can be further improved with an icon... BUG: 271683 BUG: 283177 --- src/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index d7b45a32..ec3098c3 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -179,6 +179,8 @@ MainWindow::MainWindow() // notification system connect(m_view, SIGNAL(showStatusBarMessage(const QString&, Rekonq::Notify)), this, SLOT(notifyMessage(const QString&, Rekonq::Notify))); connect(m_view, SIGNAL(linkHovered(const QString&)), this, SLOT(notifyMessage(const QString&))); + connect(rApp->downloadManager(), SIGNAL(notifyDownload(const QString&, Rekonq::Notify)), + this, SLOT(notifyMessage(const QString&, Rekonq::Notify))); // connect signals and slots connect(m_view, SIGNAL(currentTitle(const QString &)), this, SLOT(updateWindowTitle(const QString &))); @@ -1193,6 +1195,8 @@ void MainWindow::notifyMessage(const QString &msg, Rekonq::Notify status) case Rekonq::Success: case Rekonq::Error: case Rekonq::Download: + m_hidePopupTimer->start(3000); + break; default: break; } -- cgit v1.2.1