From d4135da4a5d5d2e282364289a4df338729006419 Mon Sep 17 00:00:00 2001 From: Noldor Date: Wed, 13 Apr 2011 13:17:27 +0000 Subject: Fix in theme module git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5783 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/theme/libkvitheme.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/modules/theme/libkvitheme.cpp') diff --git a/src/modules/theme/libkvitheme.cpp b/src/modules/theme/libkvitheme.cpp index 3422291cc..fb5d81ffe 100644 --- a/src/modules/theme/libkvitheme.cpp +++ b/src/modules/theme/libkvitheme.cpp @@ -133,11 +133,11 @@ static bool theme_kvs_cmd_apply(KviKvsModuleCommandCall * c) @title: theme.info @short: - Return info about a theme. + Return info about an user defined theme. @syntax: $theme.info() @description: - Returns as hash the info about a theme. + Returns as hash the info about an user definded theme. Hash keys are: name, version, author, description. */ static bool theme_kvs_fnc_info(KviKvsModuleFunctionCall * c) @@ -147,12 +147,8 @@ static bool theme_kvs_fnc_info(KviKvsModuleFunctionCall * c) KVSM_PARAMETERS_BEGIN(c) KVSM_PARAMETER("package_name",KVS_PT_STRING,0,szThemePackFile) KVSM_PARAMETERS_END(c) - QString szDir; - g_pApp->getLocalKvircDirectory(szDir,KviApplication::Themes); - szDir += KVI_PATH_SEPARATOR_CHAR; - szDir += szThemePackFile; KviThemeInfo * themeInfo = new KviThemeInfo(); - if(themeInfo->load(szDir)) + if(themeInfo->load(szThemePackFile)) { KviKvsHash *pHash=new KviKvsHash(); KviKvsVariant *name=new KviKvsVariant(themeInfo->name()); -- cgit v1.3.1-10-gc9f91