diff options
| author | 2009-12-20 21:43:25 +0000 | |
|---|---|---|
| committer | 2009-12-20 21:43:25 +0000 | |
| commit | a4ae63775c47bb3315f7f0b9035ee550db275fc8 (patch) | |
| tree | 8c128d9607f4aac44e83f9fe48866e7caf144b0d /src | |
| parent | fixed visibility for modules (diff) | |
| download | KVIrc-a4ae63775c47bb3315f7f0b9035ee550db275fc8.tar.gz KVIrc-a4ae63775c47bb3315f7f0b9035ee550db275fc8.tar.bz2 KVIrc-a4ae63775c47bb3315f7f0b9035ee550db275fc8.zip | |
fixed help module blank screen on index/search item selection
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3723 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/help/helpwindow.cpp | 6 | ||||
| -rw-r--r-- | src/modules/help/libkvihelp.cpp | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/help/helpwindow.cpp b/src/modules/help/helpwindow.cpp index 8dfeefe09..abc3b24f1 100644 --- a/src/modules/help/helpwindow.cpp +++ b/src/modules/help/helpwindow.cpp @@ -231,7 +231,7 @@ void KviHelpWindow::showIndexTopic() { if (m_pIndexSearch->text().isEmpty()|| !m_pIndexListWidget->selectedItems().count()) return; int i=g_pDocIndex->titlesList().indexOf(m_pIndexListWidget->selectedItems().at(0)->text()); - textBrowser()->setSource(QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ])); + textBrowser()->setSource(QUrl(g_pDocIndex->documentList()[ i ])); } void KviHelpWindow::searchInIndex( const QString &s ) @@ -255,14 +255,14 @@ void KviHelpWindow::indexSelected ( QListWidgetItem *item ) { if (!item) return; int i=g_pDocIndex->titlesList().indexOf(item->text()); - textBrowser()->setSource(QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ])); + textBrowser()->setSource(QUrl(g_pDocIndex->documentList()[ i ])); } void KviHelpWindow::searchSelected ( QListWidgetItem *item ) { if (!item) return; int i=g_pDocIndex->titlesList().indexOf(item->text()); - textBrowser()->setSource(QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ])); + textBrowser()->setSource(QUrl(g_pDocIndex->documentList()[ i ])); } QPixmap * KviHelpWindow::myIconPtr() diff --git a/src/modules/help/libkvihelp.cpp b/src/modules/help/libkvihelp.cpp index a4584d32e..ebb4f22d7 100644 --- a/src/modules/help/libkvihelp.cpp +++ b/src/modules/help/libkvihelp.cpp @@ -134,8 +134,7 @@ static bool help_kvs_cmd_open(KviKvsModuleCommandCall * c) int i=g_pDocIndex->titlesList().indexOf(szParam); if (i!=-1) { - szDoc=QUrl(g_pDocIndex->documentList()[ i ]).toLocalFile(); -// szDoc=(QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ])).path(); + szDoc=QUrl(g_pDocIndex->documentList()[ i ]).toLocalFile(); f->setFile(szDoc); } } |
