summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/filebrowser/filebrowser.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/unsupported/filebrowser/filebrowser.cpp b/noncore/unsupported/filebrowser/filebrowser.cpp
index eaf5eeb..10dff07 100644
--- a/noncore/unsupported/filebrowser/filebrowser.cpp
+++ b/noncore/unsupported/filebrowser/filebrowser.cpp
@@ -24,12 +24,14 @@
#include <qpe/resource.h>
#include <qpe/global.h>
#include <qpe/mimetype.h>
#include <qpe/applnk.h>
#include <qcopchannel_qws.h>
+#include <qcopenvelope_qws.h>
+
#include <qmessagebox.h>
#include <qdir.h>
#include <qregexp.h>
#include <qheader.h>
#include <qpe/qpetoolbar.h>
#include <qpopupmenu.h>
@@ -543,13 +545,15 @@ void FileView::newFolder()
}
}
void FileView::viewAsText()
{
FileItem * i = (FileItem *) currentItem();
- Global::execute( "textedit -f ", i->getFilePath() );
+ QCopEnvelope e("QPE/Application/textedit","setDocument(QString)");
+ e << i->getFilePath();
+// Global::execute( "textedit -f ", i->getFilePath() );
}
void FileView::itemClicked( QListViewItem * i)
{
FileItem * t = (FileItem *) i;