summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-06-28 17:53:03 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-06-28 17:53:03 +0200
commit230be3a0021f5e0a3c0042632778556c5f0b486f (patch)
tree0549ba4b3cda922d6328ae78734f90eb46d66c42 /src
parentMerge commit 'refs/merge-requests/143' of git://gitorious.org/rekonq/mainline... (diff)
parentMissing i18n calls in the downloads page (diff)
downloadrekonq-230be3a0021f5e0a3c0042632778556c5f0b486f.tar.xz
Merge commit 'refs/merge-requests/144' of git://gitorious.org/rekonq/mainline into m144
Diffstat (limited to 'src')
-rw-r--r--src/newtabpage.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/newtabpage.cpp b/src/newtabpage.cpp
index 9c381f97..cbdbe306 100644
--- a/src/newtabpage.cpp
+++ b/src/newtabpage.cpp
@@ -568,6 +568,7 @@ void NewTabPage::downloadsPage()
KUrl u = KUrl(item.destUrlString);
QString fName = u.fileName();
QString dir = QL1S("file://") + u.directory();
+ QString file = dir + '/' + fName;
KIconLoader *loader = KIconLoader::global();
QString iconPath = "file://" + loader->iconPath(KMimeType::iconNameForUrl(u), KIconLoader::Desktop);
@@ -585,13 +586,12 @@ void NewTabPage::downloadsPage()
div.appendInside("<br/>");
div.appendInside(markup("a"));
- div.lastChild().setAttribute("href" , dir);
- div.lastChild().setPlainText("Browse dir");
+ div.lastChild().setAttribute("href", dir);
+ div.lastChild().setPlainText(i18n("Open directory"));
- /* TODO : make this link work
div.appendInside(" - ");
div.appendInside(markup("a"));
- div.lastChild().setAttribute("href" , u.toMimeDataString());
- div.lastChild().setPlainText("Open file");*/
+ div.lastChild().setAttribute("href", file);
+ div.lastChild().setPlainText(i18n("Open file"));
}
}