diff options
| author | 2012-07-18 14:49:32 +0000 | |
|---|---|---|
| committer | 2012-07-18 14:49:32 +0000 | |
| commit | 26db5f344b5bf3a3c3e63a9adad1de15b65c74ef (patch) | |
| tree | 24d123160697d5637024c5002fe133cc53701d01 /src/modules/help/libkvihelp.cpp | |
| parent | removed hardcoded minimum size of topic widget (fixes #1283) (diff) | |
| download | KVIrc-26db5f344b5bf3a3c3e63a9adad1de15b65c74ef.tar.gz KVIrc-26db5f344b5bf3a3c3e63a9adad1de15b65c74ef.tar.bz2 KVIrc-26db5f344b5bf3a3c3e63a9adad1de15b65c74ef.zip | |
fix #1249
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6238 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/help/libkvihelp.cpp')
| -rw-r--r-- | src/modules/help/libkvihelp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/help/libkvihelp.cpp b/src/modules/help/libkvihelp.cpp index 1162e97ee..7ee00165a 100644 --- a/src/modules/help/libkvihelp.cpp +++ b/src/modules/help/libkvihelp.cpp @@ -147,7 +147,7 @@ static bool help_kvs_cmd_open(KviKvsModuleCommandCall * c) } } - int i=g_pDocIndex->titlesList().indexOf(szParam); + int i=g_pDocIndex->titlesList().indexOf(QRegExp(QRegExp::escape(szParam), Qt::CaseInsensitive)); if (i!=-1) { szDoc=QUrl(g_pDocIndex->documentList()[ i ]).toLocalFile(); @@ -156,7 +156,7 @@ static bool help_kvs_cmd_open(KviKvsModuleCommandCall * c) QString szTmpDocName(".*/doc_"); szTmpDocName.append(QRegExp::escape(szParam)); szTmpDocName.append("\\.html"); - i=g_pDocIndex->documentList().indexOf(QRegExp(szTmpDocName)); + i=g_pDocIndex->documentList().indexOf(QRegExp(szTmpDocName, Qt::CaseInsensitive)); if (i!=-1) { szDoc=QUrl(g_pDocIndex->documentList()[ i ]).toLocalFile(); |
