diff options
Diffstat (limited to 'src/modules/help/helpwindow.cpp')
| -rw-r--r-- | src/modules/help/helpwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/help/helpwindow.cpp b/src/modules/help/helpwindow.cpp index fd0d0739c..90ee57f8b 100644 --- a/src/modules/help/helpwindow.cpp +++ b/src/modules/help/helpwindow.cpp @@ -239,7 +239,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(g_pDocIndex->documentList()[ i ])); + textBrowser()->setSource(QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ])); } void KviHelpWindow::searchInIndex( const QString &s ) @@ -265,14 +265,14 @@ void KviHelpWindow::indexSelected ( QListWidgetItem *item ) { if (!item) return; int i=g_pDocIndex->titlesList().indexOf(item->text()); - textBrowser()->setSource(QUrl(g_pDocIndex->documentList()[ i ])); + textBrowser()->setSource(QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ])); } void KviHelpWindow::searchSelected ( QListWidgetItem *item ) { if (!item) return; int i=g_pDocIndex->titlesList().findIndex(item->text()); - textBrowser()->setSource(QUrl(g_pDocIndex->documentList()[ i ])); + textBrowser()->setSource(QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ])); } QPixmap * KviHelpWindow::myIconPtr() |
