-rw-r--r-- | noncore/tools/opie-sh/fviewer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/tools/opie-sh/fviewer.cpp b/noncore/tools/opie-sh/fviewer.cpp index 1a0acc6..5dc09ff 100644 --- a/noncore/tools/opie-sh/fviewer.cpp +++ b/noncore/tools/opie-sh/fviewer.cpp @@ -49,6 +49,7 @@ FViewer::FViewer(QString filename, QString title, QWidget *parent=0, const char* string = stream->read(); - textView->setText(string); - textView->mimeSourceFactory()->setFilePath(QDir::currentDirPath()); + textView->mimeSourceFactory()->setFilePath(QDir::currentDirPath()+"/"); + textView->setText(string, QDir::currentDirPath()+"/"); + printf("%s\n", QDir::currentDirPath().latin1()); file->close(); |