diff options
| author | Andrea Diamantini <adjam7@gmail.com> | 2012-02-17 23:36:29 +0100 | 
|---|---|---|
| committer | Andrea Diamantini <adjam7@gmail.com> | 2012-02-19 11:39:00 +0100 | 
| commit | ece606ae73fdb4a89e47e055ae3cae6a922c75a1 (patch) | |
| tree | 1af87c0ed699e7f0a5be2a08c527fb4ad55fbfd1 /src | |
| parent | Krazy fixes (diff) | |
| download | rekonq-ece606ae73fdb4a89e47e055ae3cae6a922c75a1.tar.xz | |
Fix downloads page
Diffstat (limited to 'src')
| -rw-r--r-- | src/newtabpage.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/newtabpage.cpp b/src/newtabpage.cpp index f22f0d50..77a2f62f 100644 --- a/src/newtabpage.cpp +++ b/src/newtabpage.cpp @@ -485,7 +485,7 @@ void NewTabPage::downloadsPage()          KUrl u = KUrl(item->destinationUrl());          QString fName = u.fileName();          QString dir = u.directory(); -        QString file = dir + fName; +        QString file = dir + QL1C('/') + fName;          KIconLoader *loader = KIconLoader::global();          QString iconPath = QL1S("file://") + loader->iconPath(KMimeType::iconNameForUrl(u), KIconLoader::Desktop); @@ -505,12 +505,12 @@ void NewTabPage::downloadsPage()          if (QFile::exists(file))          {              div.appendInside(markup(QL1S("a"))); -            div.lastChild().setAttribute(QL1S("href"), dir); +            div.lastChild().setAttribute(QL1S("href"), QL1S("file://") + dir);              div.lastChild().setPlainText(i18n("Open directory"));              div.appendInside(QL1S(" - "));              div.appendInside(markup(QL1S("a"))); -            div.lastChild().setAttribute(QL1S("href"), file); +            div.lastChild().setAttribute(QL1S("href"), QL1S("file://") + file);              div.lastChild().setPlainText(i18n("Open file"));          }          else | 
