From 1655daf2249fa681bcf56f176b7a49c6332ff26f Mon Sep 17 00:00:00 2001 From: Szymon Tomasz Stefanek Date: Sat, 30 Dec 2006 14:47:50 +0000 Subject: Theme management stuff and other tricks git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@75 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/help/libkvihelp.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/modules/help') diff --git a/src/modules/help/libkvihelp.cpp b/src/modules/help/libkvihelp.cpp index 46c8d8586..a9ea33eb3 100644 --- a/src/modules/help/libkvihelp.cpp +++ b/src/modules/help/libkvihelp.cpp @@ -135,7 +135,6 @@ static bool help_kvs_cmd_search(KviKvsModuleCommandCall * c) static bool help_kvs_cmd_open(KviKvsModuleCommandCall * c) { - QString doc; KVSM_PARAMETERS_BEGIN(c) KVSM_PARAMETER("document",KVS_PT_STRING,KVS_PF_OPTIONAL,doc) @@ -150,12 +149,11 @@ static bool help_kvs_cmd_open(KviKvsModuleCommandCall * c) if(!c->switches()->find('n',"new")) { - KviHelpWidget * w = (KviHelpWidget *)c->window()->frame()->child( - "help_widget","KviHelpWidget"); - + KviHelpWidget * w = (KviHelpWidget *)c->window()->frame()->child("help_widget","KviHelpWidget"); if(w) { w->textBrowser()->setSource(doc); + return true; } } if(c->switches()->find('m',"mdi")) -- cgit v1.3.1-10-gc9f91