-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 @@ -45,12 +45,13 @@ FViewer::FViewer(QString filename, QString title, QWidget *parent=0, const char* file->open(IO_ReadOnly, 0); } stream = new QTextStream(file); 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(); } |