summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainwindow.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 528ec217..f0df00e8 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -638,6 +638,17 @@ void MainWindow::fileSaveAs()
WebTab *w = currentTab();
KUrl srcUrl = w->url();
+ if (currentTab()->page()->isOnRekonqPage())
+ {
+ KParts::ReadOnlyPart *p = currentTab()->part();
+ if (p)
+ {
+ // if this is a KParts document then the w->url() will be empty and the srcUrl
+ // must be set to the document url
+ srcUrl = p->url();
+ }
+ }
+
// First, try with suggested file name...
QString name = w->page()->suggestedFileName();