summaryrefslogtreecommitdiff
path: root/src/newtabpage.cpp
diff options
context:
space:
mode:
authorPanagiotis Papadopoulos <pano_90@gmx.net>2010-06-27 18:47:43 +0200
committerPanagiotis Papadopoulos <pano_90@gmx.net>2010-06-27 18:47:43 +0200
commitb38aa4f4240073361048cba020b40688f719a346 (patch)
tree1de2894d7a2c42cbd590b5f01b2420a726d43982 /src/newtabpage.cpp
parentMerge branch 'master' of gitorious.org:rekonq/mainline (diff)
downloadrekonq-b38aa4f4240073361048cba020b40688f719a346.tar.xz
Missing i18n calls in the downloads page
Also, make the "Open file" feature, that was commented out, work (the solution might be a bit hackish though^^)
Diffstat (limited to 'src/newtabpage.cpp')
-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"));
}
}