From 893358440deca10dfca9e19f38598dec2eb73c98 Mon Sep 17 00:00:00 2001 From: spiralman Date: Fri, 17 May 2002 21:17:07 +0000 Subject: Fixed current directory problem in fileviewer --- 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(); } -- cgit v0.9.0.2