From b2caa0ba0c49ea8c1909d9929e39727a43448f1c Mon Sep 17 00:00:00 2001 From: Noldor Date: Thu, 15 May 2008 17:35:44 +0000 Subject: QT4 port commit :) (modules) (wip) git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1786 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/system/libkvisystem.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/modules/system/libkvisystem.cpp') diff --git a/src/modules/system/libkvisystem.cpp b/src/modules/system/libkvisystem.cpp index 6b328059b..00d4179ee 100644 --- a/src/modules/system/libkvisystem.cpp +++ b/src/modules/system/libkvisystem.cpp @@ -202,14 +202,15 @@ static bool system_kvs_fnc_getenv(KviKvsModuleFunctionCall *c) KVSM_PARAMETERS_END(c) KviQCString szVar = szVariable.toLocal8Bit(); -#ifdef COMPILE_ON_WINDOWS - QString env = getenv(szVar.data()); - QString def = __tr2qs("No environment variable found, please don't use the %% in the request"); +/*#ifdef COMPILE_ON_WINDOWS + QString env= getenv(szVar.data()); + QString def= __tr2qs("No environment variable found, please don't use the %% in the request"); c->returnValue()->setString(env.isEmpty() ? QString::fromLocal8Bit(env) : QString::fromLocal8Bit(def)); #else +*/ char * b = kvi_getenv(szVar.data()); c->returnValue()->setString(b ? QString::fromLocal8Bit(b) : QString::null); -#endif +//#endif return true; } -- cgit v1.3.1-10-gc9f91