From b261b5539e99e32b0f3e8b03c3ccba22c3b765e3 Mon Sep 17 00:00:00 2001 From: tille Date: Fri, 03 Jan 2003 19:55:12 +0000 Subject: path fix ;) --- (limited to 'noncore/apps') diff --git a/noncore/apps/odict/dingwidget.cpp b/noncore/apps/odict/dingwidget.cpp index ac7c321..5939000 100644 --- a/noncore/apps/odict/dingwidget.cpp +++ b/noncore/apps/odict/dingwidget.cpp @@ -28,10 +28,12 @@ #include #include #include +#include // for getenv DingWidget::DingWidget(QWidget *parent, QString word, QTextBrowser *browser_top, QTextBrowser *browser_bottom) : QWidget(parent) { - QFile file( "/home/carsten/opie/opie/noncore/apps/odict/eng_ita.dic" ); + QString opie_dir = getenv("OPIEDIR"); + QFile file( opie_dir+"/noncore/apps/odict/eng_ita.dic" ); QStringList lines; if( file.open( IO_ReadOnly ) ) diff --git a/noncore/apps/odict/searchmethoddlg.cpp b/noncore/apps/odict/searchmethoddlg.cpp index 203c663..8a14703 100644 --- a/noncore/apps/odict/searchmethoddlg.cpp +++ b/noncore/apps/odict/searchmethoddlg.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -90,7 +91,7 @@ void SearchMethodDlg::setupEntries( QString item ) void SearchMethodDlg::slotBrowse() { - itemName=OFileDialog::getOpenFileName( OFileSelector::EXTENDED,"/home/carsten" ); + itemName=OFileDialog::getOpenFileName( OFileSelector::EXTENDED,QDir::homeDirPath()); dictFileLE->setText( itemName ); } -- cgit v0.9.0.2