aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Noldor2011-04-13 13:17:27 +0000
committerGravatar Noldor2011-04-13 13:17:27 +0000
commitd4135da4a5d5d2e282364289a4df338729006419 (patch)
tree0fd55db747af948ece504aa10a87f08e570b15d1 /src/modules
parentupd8 spanish translation (diff)
downloadKVIrc-d4135da4a5d5d2e282364289a4df338729006419.tar.gz
KVIrc-d4135da4a5d5d2e282364289a4df338729006419.tar.bz2
KVIrc-d4135da4a5d5d2e282364289a4df338729006419.zip
Fix in theme module
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5783 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/theme/libkvitheme.cpp10
1 files changed, 3 insertions, 7 deletions
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:
<themes_list:string> $theme.info(<theme_name:string>)
@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());