author | spiralman <spiralman> | 2002-05-17 21:17:07 (UTC) |
---|---|---|
committer | spiralman <spiralman> | 2002-05-17 21:17:07 (UTC) |
commit | 893358440deca10dfca9e19f38598dec2eb73c98 (patch) (unidiff) | |
tree | ce66b54ea11ba977177c9638e296af1e54d31422 | |
parent | 29e980155449d8c8dceada28ebc707030ddbc187 (diff) | |
download | opie-893358440deca10dfca9e19f38598dec2eb73c98.zip opie-893358440deca10dfca9e19f38598dec2eb73c98.tar.gz opie-893358440deca10dfca9e19f38598dec2eb73c98.tar.bz2 |
Fixed current directory problem in fileviewer
-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 | |||
@@ -47,10 +47,11 @@ FViewer::FViewer(QString filename, QString title, QWidget *parent=0, const char* | |||
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 | ||