aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/help/libkvihelp.cpp
diff options
context:
space:
mode:
authorGravatar Elvio Basello2009-12-17 22:28:35 +0000
committerGravatar Elvio Basello2009-12-17 22:28:35 +0000
commitf2b7a36086b49fc6c3df27925df1bf0fdf3fdf66 (patch)
treefc29426d326d78de1e4b825d4f9eb8d554e69010 /src/modules/help/libkvihelp.cpp
parentmake gcc happy (diff)
downloadKVIrc-f2b7a36086b49fc6c3df27925df1bf0fdf3fdf66.tar.gz
KVIrc-f2b7a36086b49fc6c3df27925df1bf0fdf3fdf66.tar.bz2
KVIrc-f2b7a36086b49fc6c3df27925df1bf0fdf3fdf66.zip
applied patches, thanks to Kebianizao
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3703 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/help/libkvihelp.cpp')
-rw-r--r--src/modules/help/libkvihelp.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/help/libkvihelp.cpp b/src/modules/help/libkvihelp.cpp
index b78933d10..a4584d32e 100644
--- a/src/modules/help/libkvihelp.cpp
+++ b/src/modules/help/libkvihelp.cpp
@@ -128,13 +128,14 @@ static bool help_kvs_cmd_open(KviKvsModuleCommandCall * c)
} else {
g_pDocIndex->makeIndex();
g_pDocIndex->writeDict();
- g_pDocIndex->writeDocumentList();
}
}
+
int i=g_pDocIndex->titlesList().indexOf(szParam);
if (i!=-1)
{
- szDoc=QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ]).path();
+ szDoc=QUrl(g_pDocIndex->documentList()[ i ]).toLocalFile();
+// szDoc=(QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ])).path();
f->setFile(szDoc);
}
}