summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/data/rekonq.desktop1
-rw-r--r--src/mainwindow.cpp15
2 files changed, 14 insertions, 2 deletions
diff --git a/src/data/rekonq.desktop b/src/data/rekonq.desktop
index 1aca0333..9f00873f 100644
--- a/src/data/rekonq.desktop
+++ b/src/data/rekonq.desktop
@@ -25,6 +25,7 @@ GenericName[da]=KDE-browser baseret på WebKit
GenericName[de]=WebKit-basierter Webbrowser für KDE
GenericName[et]=KDE WebKiti veebibrauser
GenericName[fr]=Navigateur Webkit pour KDE
+GenericName[nl]=Webkit KDE Browser
GenericName[pt]=Navegador do KDE Usando o WebKit
GenericName[pt_BR]=Navegador WebKit do KDE
GenericName[sv]=Webkit webbläsare för KDE
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 43418ed3..95fbd92d 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -609,8 +609,19 @@ void MainWindow::openLocation()
void MainWindow::fileSaveAs()
{
- KUrl srcUrl = currentTab()->url();
-
+ KUrl srcUrl;
+ WebTab *w = currentTab();
+ if (w->page()->isOnRekonqPage())
+ {
+ QWebElement el = w->page()->mainFrame()->documentElement();
+ srcUrl = KUrl( el.findFirst("object").attribute("data") );
+ }
+ else
+ {
+ srcUrl = w->url();
+ }
+ kDebug() << "URL to save: " << srcUrl;
+
QString name = srcUrl.fileName();
if (name.isNull())
{