summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-01-21 02:03:30 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-01-21 02:03:30 +0100
commit22bc40e17d463ec817a9c9c1f461b4f7990c5450 (patch)
tree2522f5a9d6394273002e062aaf3631186fb0ffe2 /src/mainwindow.cpp
parentImplemented a new function to download data with KJob technologies.. (diff)
downloadrekonq-22bc40e17d463ec817a9c9c1f461b4f7990c5450.tar.xz
Reimplemented download system based on KGet one.
Thanks Lucas ;) Rekonq now has its one!
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 482c351d..7a7ec427 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -384,7 +384,10 @@ void MainWindow::slotOpenLocation()
void MainWindow::slotFileSaveAs()
{
- BrowserApplication::instance()->downloadUrl( currentTab()->url() );
+ KUrl srcUrl = currentTab()->url();
+ QString destPath = KFileDialog::getSaveFileName();
+ KUrl destUrl = KUrl(destPath);
+ BrowserApplication::instance()->downloadUrl( srcUrl, destUrl );
}