diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-06-28 17:53:03 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-06-28 17:53:03 +0200 |
commit | 230be3a0021f5e0a3c0042632778556c5f0b486f (patch) | |
tree | 0549ba4b3cda922d6328ae78734f90eb46d66c42 /src/newtabpage.cpp | |
parent | Merge commit 'refs/merge-requests/143' of git://gitorious.org/rekonq/mainline... (diff) | |
parent | Missing i18n calls in the downloads page (diff) | |
download | rekonq-230be3a0021f5e0a3c0042632778556c5f0b486f.tar.xz |
Merge commit 'refs/merge-requests/144' of git://gitorious.org/rekonq/mainline into m144
Diffstat (limited to 'src/newtabpage.cpp')
-rw-r--r-- | src/newtabpage.cpp | 10 |
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")); } } |