From 16fbc38ebe20c6ee789918fb43540085c0a41dba Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 17 Feb 2012 23:36:29 +0100 Subject: Fix downloads page --- src/newtabpage.cpp | 6 +++--- 1 file 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 -- cgit v1.2.1