summaryrefslogtreecommitdiff
path: root/src/newtabpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-02-17 23:36:29 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-02-17 23:36:29 +0100
commit16fbc38ebe20c6ee789918fb43540085c0a41dba (patch)
tree745c8aae48e3e245665468a2b1bc1a024f82abf4 /src/newtabpage.cpp
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-16fbc38ebe20c6ee789918fb43540085c0a41dba.tar.xz
Fix downloads page
Diffstat (limited to 'src/newtabpage.cpp')
-rw-r--r--src/newtabpage.cpp6
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