diff options
Diffstat (limited to 'src/modules/help/libkvihelp.cpp')
| -rw-r--r-- | src/modules/help/libkvihelp.cpp | 5 |
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); } } |
