diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/mainwindow.cpp | 15 | 
1 files changed, 13 insertions, 2 deletions
| 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())      { | 
