Allow setting fields in fs subtree. Use for an application tag used for starting a specialized viewer

This commit is contained in:
dockes
2009-10-30 10:16:37 +00:00
parent e7dfd57d6e
commit 4d0e860a04
5 changed files with 25 additions and 10 deletions
+7 -1
View File
@@ -217,7 +217,13 @@ void ResListPager::displayPage()
linksbuf += string("<a href=") + vlbuf + ">" + trans("Preview")
+ "</a>&nbsp;&nbsp;";
}
if (!RclConfig::getMainConfig()->getMimeViewerDef(doc.mimetype).empty()) {
string apptag;
map<string,string>::const_iterator it;
if ((it = doc.meta.find("apptag")) != doc.meta.end())
apptag = it->second;
if (!RclConfig::getMainConfig()->getMimeViewerDef(doc.mimetype, apptag).empty()) {
sprintf(vlbuf, "E%d", docnumforlinks);
linksbuf += string("<a href=") + vlbuf + ">" + trans("Open")
+ "</a>";