allow opening parent/enclosing doc with native editor in reslist
This commit is contained in:
@@ -44,6 +44,8 @@ using namespace std;
|
||||
#include "wipedir.h"
|
||||
#include "rclconfig.h"
|
||||
#include "mh_html.h"
|
||||
#include "fileudi.h"
|
||||
|
||||
#ifdef RCL_USE_XATTR
|
||||
#include "pxattr.h"
|
||||
#endif // RCL_USE_XATTR
|
||||
@@ -85,7 +87,7 @@ void FileInterner::reapXAttrs(const string& path)
|
||||
// This is used when the user wants to retrieve a search result doc's parent
|
||||
// (ie message having a given attachment)
|
||||
bool FileInterner::getEnclosing(const string &url, const string &ipath,
|
||||
string &eurl, string &eipath)
|
||||
string &eurl, string &eipath, string& udi)
|
||||
{
|
||||
eurl = url;
|
||||
eipath = ipath;
|
||||
@@ -98,6 +100,8 @@ bool FileInterner::getEnclosing(const string &url, const string &ipath,
|
||||
} else {
|
||||
eipath.erase();
|
||||
}
|
||||
make_udi(url_gpath(eurl), eipath, udi);
|
||||
|
||||
LOGDEB(("FileInterner::getEnclosing() after: [%s]\n", eipath.c_str()));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ class FileInterner {
|
||||
* with Rcl::Db::addOrUpdate(). The latter is generally the enclosing file.
|
||||
*/
|
||||
static bool getEnclosing(const string &url, const string &ipath,
|
||||
string &eurl, string &eipath);
|
||||
string &eurl, string &eipath, string& udi);
|
||||
/**
|
||||
* Identify and possibly decompress file, create adequate
|
||||
* handler. The mtype parameter is only set when the object is
|
||||
|
||||
Reference in New Issue
Block a user