-rw-r--r-- | noncore/unsupported/filebrowser/filebrowser.cpp | 6 |
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 @@ -29,2 +29,4 @@ #include <qcopchannel_qws.h> +#include <qcopenvelope_qws.h> + #include <qmessagebox.h> @@ -548,3 +550,5 @@ 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() ); } |