Commit 8d72b0b2 authored by Pino Toscano's avatar Pino Toscano

getenv -> qgetenv

Also decode it using the right encoding.
parent 0e945fba
......@@ -31,8 +31,6 @@
#include <QTextStream>
#include <QIcon>
#include <stdlib.h> // for getenv()
using namespace KHC;
class InfoCategoryItem : public NavigatorItem
......@@ -95,7 +93,7 @@ void InfoTree::build( NavigatorItem *parent )
QStringList infoDirFiles = Prefs::searchpaths();
QString infoPath = ::getenv( "INFOPATH" );
const QString infoPath = QFile::decodeName( qgetenv( "INFOPATH" ) );
if ( !infoPath.isEmpty() )
infoDirFiles += infoPath.split( ':');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment