summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/tools/opie-sh/fviewer.cpp5
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
@@ -48,8 +48,9 @@ FViewer::FViewer(QString filename, QString title, QWidget *parent=0, const char*
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();
}