summaryrefslogtreecommitdiff
path: root/core/pim/osearch/doclnkitem.cpp
Unidiff
Diffstat (limited to 'core/pim/osearch/doclnkitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/doclnkitem.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/pim/osearch/doclnkitem.cpp b/core/pim/osearch/doclnkitem.cpp
index 04d08ca..95402b9 100644
--- a/core/pim/osearch/doclnkitem.cpp
+++ b/core/pim/osearch/doclnkitem.cpp
@@ -35,6 +35,7 @@ QString DocLnkItem::toRichText()
35 text += "<b><h3>" + _doc->name() + "</b></h3><br>"; 35 text += "<b><h3>" + _doc->name() + "</b></h3><br>";
36 text += _doc->comment() + "<br>"; 36 text += _doc->comment() + "<br>";
37 text += "File: " + _doc->file() + "<br>"; 37 text += "File: " + _doc->file() + "<br>";
38 text += "Link: " + _doc->linkFile() + "<br>";
38 text += "Mimetype: " + _doc->type() + "<br>"; 39 text += "Mimetype: " + _doc->type() + "<br>";
39 if ( _doc->type().contains( "text" ) ){ 40 if ( _doc->type().contains( "text" ) ){
40 text += "<br><br><hr><br>"; 41 text += "<br><br><hr><br>";
@@ -63,12 +64,8 @@ void DocLnkItem::action( int act )
63 if (!_doc->isValid()) qDebug("INVALID"); 64 if (!_doc->isValid()) qDebug("INVALID");
64 if (act == 0) _doc->execute(); 65 if (act == 0) _doc->execute();
65 else if (act == 1){ 66 else if (act == 1){
66 QFileInfo file( _doc->file() );
67 qDebug("opening %s in filemanager", file.dirPath().latin1());
68 QCopEnvelope e("QPE/Application/advancedfm", "setDocument(QString)"); 67 QCopEnvelope e("QPE/Application/advancedfm", "setDocument(QString)");
69 e << file.dirPath(); 68 e << _doc->file();
70 // QCopEnvelope e("QPE/Application/advancedfm", "setDocument(QString)");
71 // e << _doc->file();
72 } 69 }
73} 70}
74 71