-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* | |||
45 | file->open(IO_ReadOnly, 0); | 45 | file->open(IO_ReadOnly, 0); |
46 | } | 46 | } |
47 | 47 | ||
48 | stream = new QTextStream(file); | 48 | stream = new QTextStream(file); |
49 | 49 | ||
50 | string = stream->read(); | 50 | string = stream->read(); |
51 | textView->setText(string); | 51 | textView->mimeSourceFactory()->setFilePath(QDir::currentDirPath()+"/"); |
52 | textView->mimeSourceFactory()->setFilePath(QDir::currentDirPath()); | 52 | textView->setText(string, QDir::currentDirPath()+"/"); |
53 | printf("%s\n", QDir::currentDirPath().latin1()); | ||
53 | file->close(); | 54 | file->close(); |
54 | 55 | ||
55 | } | 56 | } |
56 | 57 | ||